tree: 168a01568632c3ec12471187d395a7c4c04cfe47 [path history] [tgz]
  1. BUILD.gn
  2. color_space_transfer_cache_entry.cc
  3. color_space_transfer_cache_entry.h
  4. decode_stashing_image_provider.cc
  5. decode_stashing_image_provider.h
  6. decoded_draw_image.cc
  7. decoded_draw_image.h
  8. DEPS
  9. discardable_image_map.cc
  10. discardable_image_map.h
  11. discardable_image_map_unittest.cc
  12. display_item_list.cc
  13. display_item_list.h
  14. display_item_list_unittest.cc
  15. draw_image.cc
  16. draw_image.h
  17. filter_operation.cc
  18. filter_operation.h
  19. filter_operations.cc
  20. filter_operations.h
  21. filter_operations_unittest.cc
  22. frame_metadata.h
  23. image_analysis_state.h
  24. image_animation_count.h
  25. image_id.h
  26. image_provider.cc
  27. image_provider.h
  28. image_transfer_cache_entry.cc
  29. image_transfer_cache_entry.h
  30. node_holder.cc
  31. node_holder.h
  32. oop_pixeltest.cc
  33. paint_cache.cc
  34. paint_cache.h
  35. paint_cache_unittest.cc
  36. paint_canvas.h
  37. paint_export.h
  38. paint_filter.cc
  39. paint_filter.h
  40. paint_filter_unittest.cc
  41. paint_flags.cc
  42. paint_flags.h
  43. paint_image.cc
  44. paint_image.h
  45. paint_image_builder.cc
  46. paint_image_builder.h
  47. paint_image_generator.cc
  48. paint_image_generator.h
  49. paint_image_unittest.cc
  50. paint_op_buffer.cc
  51. paint_op_buffer.h
  52. paint_op_buffer_fuzzer.cc
  53. paint_op_buffer_serializer.cc
  54. paint_op_buffer_serializer.h
  55. paint_op_buffer_unittest.cc
  56. paint_op_helper_unittest.cc
  57. paint_op_perftest.cc
  58. paint_op_reader.cc
  59. paint_op_reader.h
  60. paint_op_writer.cc
  61. paint_op_writer.h
  62. paint_record.cc
  63. paint_record.h
  64. paint_recorder.cc
  65. paint_recorder.h
  66. paint_shader.cc
  67. paint_shader.h
  68. paint_shader_unittest.cc
  69. paint_worklet_input.h
  70. paint_worklet_layer_painter.h
  71. raw_memory_transfer_cache_entry.cc
  72. raw_memory_transfer_cache_entry.h
  73. README.md
  74. record_paint_canvas.cc
  75. record_paint_canvas.h
  76. render_surface_filters.cc
  77. render_surface_filters.h
  78. scoped_raster_flags.cc
  79. scoped_raster_flags.h
  80. scoped_raster_flags_unittest.cc
  81. shader_transfer_cache_entry.cc
  82. shader_transfer_cache_entry.h
  83. skia_paint_canvas.cc
  84. skia_paint_canvas.h
  85. skia_paint_canvas_unittest.cc
  86. skia_paint_image_generator.cc
  87. skia_paint_image_generator.h
  88. skottie_wrapper.cc
  89. skottie_wrapper.h
  90. solid_color_analyzer.cc
  91. solid_color_analyzer.h
  92. solid_color_analyzer_unittest.cc
  93. text_holder.h
  94. transfer_cache_deserialize_helper.h
  95. transfer_cache_entry.cc
  96. transfer_cache_entry.h
  97. transfer_cache_fuzzer.cc
  98. transfer_cache_serialize_helper.cc
  99. transfer_cache_serialize_helper.h
  100. transfer_cache_unittest.cc
cc/paint/README.md

cc/paint

This document gives an overview of the paint component of cc.

Overview

cc/paint is a replacement for SkPicture/SkCanvas/SkPaint recording data structures throughout the Chrome codebase, primarily meaning Blink and ui. The reason for a separate data structure is to change the way that recordings are stored to improve transport and recording performance.

Skia will still be the ultimate backend for raster, and so any place in code that still wants to raster directly (either for test expectations or to create an SkImage, for example) should continue to use Skia data structures.

Dependencies

As this component is used in both Blink and ui, it should only include files that Blink is also allowed to depend on. This means not including base/ or using std data structures publicly.

This is why cc/paint uses sk_sp reference counting at the moment as a compromise between Blink and chrome style.