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

Unified Diff: cc/layers/layer_impl.h

Issue 1152473006: cc: Remove DrawQuad::IterateResoruces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/layers/layer_impl.h
diff --git a/cc/layers/layer_impl.h b/cc/layers/layer_impl.h
index 980390224342fbe7b1dc03de3aa5a53ff557f4ff..8239fc847f5d53ae111c8a5c434209610c000005 100644
--- a/cc/layers/layer_impl.h
+++ b/cc/layers/layer_impl.h
@@ -247,11 +247,7 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver,
virtual void DidDraw(ResourceProvider* resource_provider);
// Verify that the resource ids in the quad are valid.
- void ValidateQuadResources(DrawQuad* quad) const {
-#if DCHECK_IS_ON()
danakj 2015/05/28 17:10:05 The idea here is that the function is a no-op in t
vmpstr 2015/05/28 18:38:45 OK. I'm not too sure how much of an impact this ma
- ValidateQuadResourcesInternal(quad);
-#endif
- }
+ void ValidateQuadResources(DrawQuad* quad) const;
virtual void GetContentsResourceId(ResourceId* resource_id,
gfx::Size* resource_size) const;
@@ -691,8 +687,6 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver,
gfx::Rect GetScaledEnclosingRectInTargetSpace(float scale) const;
private:
- void ValidateQuadResourcesInternal(DrawQuad* quad) const;
-
void PushScrollOffset(const gfx::ScrollOffset* scroll_offset);
// If the new scroll offset is assigned from the root scroll offset delegate,
// LayerImpl won't inform the root scroll offset delegate about the scroll

Powered by Google App Engine
This is Rietveld 408576698