Move PixelRefMap and its Iterator out from Picture class
Factor out PixelRefMap and the values used with it out from Picture
class. Also move the PixelRefIterator on Picture level out from Picture
class. TileGridSize is now only used to decide cell size when gather
pixel refs.
R=vmpstr, ajuma
BUG=440468
Review URL: https://codereview.chromium.org/909353002
Cr-Commit-Position: refs/heads/master@{#319909}
diff --git a/cc/BUILD.gn b/cc/BUILD.gn
index 92308e6..83e012ae 100644
--- a/cc/BUILD.gn
+++ b/cc/BUILD.gn
@@ -393,6 +393,8 @@
"resources/picture_pile_impl.h",
"resources/pixel_buffer_tile_task_worker_pool.cc",
"resources/pixel_buffer_tile_task_worker_pool.h",
+ "resources/pixel_ref_map.cc",
+ "resources/pixel_ref_map.h",
"resources/platform_color.h",
"resources/prioritized_resource.cc",
"resources/prioritized_resource.h",
@@ -805,6 +807,7 @@
"resources/picture_pile_impl_unittest.cc",
"resources/picture_pile_unittest.cc",
"resources/picture_unittest.cc",
+ "resources/pixel_ref_map_unittest.cc",
"resources/platform_color_unittest.cc",
"resources/prioritized_resource_unittest.cc",
"resources/resource_provider_unittest.cc",