tree: 1e3a4436f56a5b59a87fca488ed0d5f4008c3246 [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. oop_pixeltest.cc
  31. paint_cache.cc
  32. paint_cache.h
  33. paint_cache_unittest.cc
  34. paint_canvas.h
  35. paint_export.h
  36. paint_filter.cc
  37. paint_filter.h
  38. paint_filter_unittest.cc
  39. paint_flags.cc
  40. paint_flags.h
  41. paint_image.cc
  42. paint_image.h
  43. paint_image_builder.cc
  44. paint_image_builder.h
  45. paint_image_generator.cc
  46. paint_image_generator.h
  47. paint_image_unittest.cc
  48. paint_op_buffer.cc
  49. paint_op_buffer.h
  50. paint_op_buffer_fuzzer.cc
  51. paint_op_buffer_serializer.cc
  52. paint_op_buffer_serializer.h
  53. paint_op_buffer_unittest.cc
  54. paint_op_helper_unittest.cc
  55. paint_op_perftest.cc
  56. paint_op_reader.cc
  57. paint_op_reader.h
  58. paint_op_writer.cc
  59. paint_op_writer.h
  60. paint_record.cc
  61. paint_record.h
  62. paint_recorder.cc
  63. paint_recorder.h
  64. paint_shader.cc
  65. paint_shader.h
  66. paint_shader_unittest.cc
  67. paint_worklet_input.h
  68. paint_worklet_layer_painter.h
  69. raw_memory_transfer_cache_entry.cc
  70. raw_memory_transfer_cache_entry.h
  71. README.md
  72. record_paint_canvas.cc
  73. record_paint_canvas.h
  74. render_surface_filters.cc
  75. render_surface_filters.h
  76. scoped_raster_flags.cc
  77. scoped_raster_flags.h
  78. scoped_raster_flags_unittest.cc
  79. shader_transfer_cache_entry.cc
  80. shader_transfer_cache_entry.h
  81. skia_paint_canvas.cc
  82. skia_paint_canvas.h
  83. skia_paint_canvas_unittest.cc
  84. skia_paint_image_generator.cc
  85. skia_paint_image_generator.h
  86. skottie_wrapper.cc
  87. skottie_wrapper.h
  88. solid_color_analyzer.cc
  89. solid_color_analyzer.h
  90. solid_color_analyzer_unittest.cc
  91. transfer_cache_deserialize_helper.h
  92. transfer_cache_entry.cc
  93. transfer_cache_entry.h
  94. transfer_cache_fuzzer.cc
  95. transfer_cache_serialize_helper.cc
  96. transfer_cache_serialize_helper.h
  97. 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.