Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(424)

Unified Diff: cc/resources/display_item_list.h

Issue 1050103003: Revert of Revert of Implement DisplayList GatherPixelRefs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/output/renderer_pixeltest.cc ('k') | cc/resources/display_item_list.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/display_item_list.h
diff --git a/cc/resources/display_item_list.h b/cc/resources/display_item_list.h
index 39694d72a1dba7ed8d5ecd444bc597a50941a5b4..f49055209d79fa762392547cb6d1cd3c547b96b1 100644
--- a/cc/resources/display_item_list.h
+++ b/cc/resources/display_item_list.h
@@ -11,6 +11,7 @@
#include "cc/base/cc_export.h"
#include "cc/base/scoped_ptr_vector.h"
#include "cc/resources/display_item.h"
+#include "cc/resources/pixel_ref_map.h"
#include "skia/ext/refptr.h"
#include "third_party/skia/include/core/SkPicture.h"
#include "ui/gfx/geometry/rect.h"
@@ -44,6 +45,8 @@
void EmitTraceSnapshot() const;
+ void GatherPixelRefs(const gfx::Size& grid_cell_size);
+
private:
DisplayItemList();
~DisplayItemList();
@@ -54,7 +57,10 @@
bool is_suitable_for_gpu_rasterization_;
int approximate_op_count_;
+ scoped_ptr<PixelRefMap> pixel_refs_;
+
friend class base::RefCountedThreadSafe<DisplayItemList>;
+ friend class PixelRefMap::Iterator;
DISALLOW_COPY_AND_ASSIGN(DisplayItemList);
};
« no previous file with comments | « cc/output/renderer_pixeltest.cc ('k') | cc/resources/display_item_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698