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

Unified Diff: cc/quads/texture_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/texture_draw_quad.h
diff --git a/cc/quads/texture_draw_quad.h b/cc/quads/texture_draw_quad.h
index 706414923686d321d9b2374ba9e7d6e917984dbc..3f8592069620b5010e1c1a0353ad41b485289d78 100644
--- a/cc/quads/texture_draw_quad.h
+++ b/cc/quads/texture_draw_quad.h
@@ -43,7 +43,6 @@ class CC_EXPORT TextureDrawQuad : public DrawQuad {
bool y_flipped,
bool nearest_neighbor);
- unsigned resource_id;
bool premultiplied_alpha;
gfx::PointF uv_top_left;
gfx::PointF uv_bottom_right;
@@ -52,11 +51,13 @@ class CC_EXPORT TextureDrawQuad : public DrawQuad {
bool y_flipped;
bool nearest_neighbor;
- void IterateResources(const ResourceIteratorCallback& callback) override;
+ ResourceId resource_id() const { return resources.ids[kResourceIdIndex]; }
static const TextureDrawQuad* MaterialCast(const DrawQuad*);
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