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

Unified Diff: cc/layers/layer_impl.h

Issue 1096703006: cc: Some more cleanup and removing TODOs for validating resources. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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/layers/layer_impl.h
diff --git a/cc/layers/layer_impl.h b/cc/layers/layer_impl.h
index 730b188e35fe66576ad53ef28f625a8b4632c32e..cbd8e2f79cdda0f2f941e35d120a458dfb9042b5 100644
--- a/cc/layers/layer_impl.h
+++ b/cc/layers/layer_impl.h
@@ -247,6 +247,9 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver,
AppendQuadsData* append_quads_data) {}
virtual void DidDraw(ResourceProvider* resource_provider);
+ // Verify that the resource ids in the quad are valid.
+ void ValidateQuadResources(const DrawQuad* quad) const;
+
virtual void GetContentsResourceId(ResourceProvider::ResourceId* resource_id,
gfx::Size* resource_size) const;

Powered by Google App Engine
This is Rietveld 408576698