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

Side by Side Diff: cc/CCLayerImpl.h

Issue 10947047: Fix remaining cc files to compile with Clang (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix FakeCCDelayBasedTimeSource Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/CCHeadsUpDisplayLayerImpl.cpp ('k') | cc/CCLayerImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CCLayerImpl_h 5 #ifndef CCLayerImpl_h
6 #define CCLayerImpl_h 6 #define CCLayerImpl_h
7 7
8 #include "CCInputHandler.h" 8 #include "CCInputHandler.h"
9 #include "CCLayerAnimationController.h" 9 #include "CCLayerAnimationController.h"
10 #include "CCRenderPass.h" 10 #include "CCRenderPass.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // willDraw must be called before appendQuads. If willDraw is called, 75 // willDraw must be called before appendQuads. If willDraw is called,
76 // didDraw is guaranteed to be called before another willDraw or before 76 // didDraw is guaranteed to be called before another willDraw or before
77 // the layer is destroyed. To enforce this, any class that overrides 77 // the layer is destroyed. To enforce this, any class that overrides
78 // willDraw/didDraw must call the base class version. 78 // willDraw/didDraw must call the base class version.
79 virtual void willDraw(CCResourceProvider*); 79 virtual void willDraw(CCResourceProvider*);
80 virtual void appendQuads(CCQuadSink&, CCAppendQuadsData&) { } 80 virtual void appendQuads(CCQuadSink&, CCAppendQuadsData&) { }
81 virtual void didDraw(CCResourceProvider*); 81 virtual void didDraw(CCResourceProvider*);
82 82
83 virtual CCResourceProvider::ResourceId contentsResourceId() const; 83 virtual CCResourceProvider::ResourceId contentsResourceId() const;
84 84
85 virtual bool hasContributingDelegatedRenderPasses() const { return false; } 85 virtual bool hasContributingDelegatedRenderPasses() const;
86 virtual CCRenderPass::Id firstContributingRenderPassId() const { return CCRe nderPass::Id(0, 0); } 86 virtual CCRenderPass::Id firstContributingRenderPassId() const;
87 virtual CCRenderPass::Id nextContributingRenderPassId(CCRenderPass::Id) cons t { return CCRenderPass::Id(0, 0); } 87 virtual CCRenderPass::Id nextContributingRenderPassId(CCRenderPass::Id) cons t;
88 88
89 // Returns true if this layer has content to draw. 89 // Returns true if this layer has content to draw.
90 void setDrawsContent(bool); 90 void setDrawsContent(bool);
91 bool drawsContent() const { return m_drawsContent; } 91 bool drawsContent() const { return m_drawsContent; }
92 92
93 bool forceRenderSurface() const { return m_forceRenderSurface; } 93 bool forceRenderSurface() const { return m_forceRenderSurface; }
94 void setForceRenderSurface(bool force) { m_forceRenderSurface = force; } 94 void setForceRenderSurface(bool force) { m_forceRenderSurface = force; }
95 95
96 // Returns true if any of the layer's descendants has content to draw. 96 // Returns true if any of the layer's descendants has content to draw.
97 virtual bool descendantDrawsContent(); 97 virtual bool descendantDrawsContent();
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 388
389 // Manages scrollbars for this layer 389 // Manages scrollbars for this layer
390 OwnPtr<CCScrollbarAnimationController> m_scrollbarAnimationController; 390 OwnPtr<CCScrollbarAnimationController> m_scrollbarAnimationController;
391 }; 391 };
392 392
393 void sortLayers(Vector<CCLayerImpl*>::iterator first, Vector<CCLayerImpl*>::iter ator end, CCLayerSorter*); 393 void sortLayers(Vector<CCLayerImpl*>::iterator first, Vector<CCLayerImpl*>::iter ator end, CCLayerSorter*);
394 394
395 } 395 }
396 396
397 #endif // CCLayerImpl_h 397 #endif // CCLayerImpl_h
OLDNEW
« no previous file with comments | « cc/CCHeadsUpDisplayLayerImpl.cpp ('k') | cc/CCLayerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698