tree: d66c4e103f7d71bb4b5a488c964e08292216abb7 [path history] [tgz]
  1. BUILD.gn
  2. DEPS
  3. README.md
  4. decode_stashing_image_provider.cc
  5. decode_stashing_image_provider.h
  6. decoded_draw_image.cc
  7. decoded_draw_image.h
  8. discardable_image_map.cc
  9. discardable_image_map.h
  10. discardable_image_map_unittest.cc
  11. display_item_list.cc
  12. display_item_list.h
  13. display_item_list_unittest.cc
  14. draw_image.cc
  15. draw_image.h
  16. filter_operation.cc
  17. filter_operation.h
  18. filter_operations.cc
  19. filter_operations.h
  20. filter_operations_unittest.cc
  21. frame_metadata.h
  22. image_analysis_state.h
  23. image_animation_count.h
  24. image_id.h
  25. image_provider.cc
  26. image_provider.h
  27. image_transfer_cache_entry.cc
  28. image_transfer_cache_entry.h
  29. node_holder.cc
  30. node_holder.h
  31. oop_pixeltest.cc
  32. paint_cache.cc
  33. paint_cache.h
  34. paint_cache_unittest.cc
  35. paint_canvas.h
  36. paint_export.h
  37. paint_filter.cc
  38. paint_filter.h
  39. paint_filter_unittest.cc
  40. paint_flags.cc
  41. paint_flags.h
  42. paint_image.cc
  43. paint_image.h
  44. paint_image_builder.cc
  45. paint_image_builder.h
  46. paint_image_generator.cc
  47. paint_image_generator.h
  48. paint_image_unittest.cc
  49. paint_op_buffer.cc
  50. paint_op_buffer.h
  51. paint_op_buffer_fuzzer.cc
  52. paint_op_buffer_serializer.cc
  53. paint_op_buffer_serializer.h
  54. paint_op_buffer_unittest.cc
  55. paint_op_helper_unittest.cc
  56. paint_op_perftest.cc
  57. paint_op_reader.cc
  58. paint_op_reader.h
  59. paint_op_writer.cc
  60. paint_op_writer.h
  61. paint_record.cc
  62. paint_record.h
  63. paint_recorder.cc
  64. paint_recorder.h
  65. paint_shader.cc
  66. paint_shader.h
  67. paint_shader_unittest.cc
  68. paint_worklet_input.h
  69. paint_worklet_layer_painter.h
  70. raw_memory_transfer_cache_entry.cc
  71. raw_memory_transfer_cache_entry.h
  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. text_holder.h
  92. transfer_cache_deserialize_helper.h
  93. transfer_cache_entry.cc
  94. transfer_cache_entry.h
  95. transfer_cache_fuzzer.cc
  96. transfer_cache_serialize_helper.cc
  97. transfer_cache_serialize_helper.h
  98. 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.