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

Unified Diff: cc/quads/stream_video_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/stream_video_draw_quad.h
diff --git a/cc/quads/stream_video_draw_quad.h b/cc/quads/stream_video_draw_quad.h
index 45c28f2f9574955a080a01798875ee0a748d3059..faffd20070aece0516b5b35aba47065775d1b10e 100644
--- a/cc/quads/stream_video_draw_quad.h
+++ b/cc/quads/stream_video_draw_quad.h
@@ -31,14 +31,15 @@ class CC_EXPORT StreamVideoDrawQuad : public DrawQuad {
unsigned resource_id,
const gfx::Transform& matrix);
- unsigned resource_id;
gfx::Transform matrix;
- void IterateResources(const ResourceIteratorCallback& callback) override;
-
static const StreamVideoDrawQuad* 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