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

Unified Diff: cc/quads/tile_draw_quad.h

Issue 1152473006: cc: Remove DrawQuad::IterateResoruces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mkwst review Created 5 years, 7 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
Index: cc/quads/tile_draw_quad.h
diff --git a/cc/quads/tile_draw_quad.h b/cc/quads/tile_draw_quad.h
index b858e148d2346f518ebbd840dd3010e9615c4ca4..feb9e87c7cc1541a58bd235ada782bb75ea56e3f 100644
--- a/cc/quads/tile_draw_quad.h
+++ b/cc/quads/tile_draw_quad.h
@@ -41,13 +41,13 @@ class CC_EXPORT TileDrawQuad : public ContentDrawQuadBase {
bool swizzle_contents,
bool nearest_neighbor);
- unsigned resource_id;
-
- void IterateResources(const ResourceIteratorCallback& callback) override;
-
static const TileDrawQuad* MaterialCast(const DrawQuad*);
+ ResourceId resource_id() const { return resources.ids[kResourceIdIndex]; }
+
private:
+ static const size_t kResourceIdIndex = 0;
+
void ExtendValue(base::trace_event::TracedValue* value) const override;
};

Powered by Google App Engine
This is Rietveld 408576698