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

Side by Side Diff: cc/CCLayerTreeHostImpl.h

Issue 10907075: Roll cc snapshot up to 127605 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/CCLayerTreeHost.cpp ('k') | cc/CCLayerTreeHostImpl.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 CCLayerTreeHostImpl_h 5 #ifndef CCLayerTreeHostImpl_h
6 #define CCLayerTreeHostImpl_h 6 #define CCLayerTreeHostImpl_h
7 7
8 #include "CCAnimationEvents.h" 8 #include "CCAnimationEvents.h"
9 #include "CCInputHandler.h" 9 #include "CCInputHandler.h"
10 #include "CCLayerSorter.h" 10 #include "CCLayerSorter.h"
(...skipping 19 matching lines...) Expand all
30 class CCResourceProvider; 30 class CCResourceProvider;
31 struct RendererCapabilities; 31 struct RendererCapabilities;
32 struct CCRenderingStats; 32 struct CCRenderingStats;
33 33
34 // CCLayerTreeHost->CCProxy callback interface. 34 // CCLayerTreeHost->CCProxy callback interface.
35 class CCLayerTreeHostImplClient { 35 class CCLayerTreeHostImplClient {
36 public: 36 public:
37 virtual void didLoseContextOnImplThread() = 0; 37 virtual void didLoseContextOnImplThread() = 0;
38 virtual void onSwapBuffersCompleteOnImplThread() = 0; 38 virtual void onSwapBuffersCompleteOnImplThread() = 0;
39 virtual void onVSyncParametersChanged(double monotonicTimebase, double inter valInSeconds) = 0; 39 virtual void onVSyncParametersChanged(double monotonicTimebase, double inter valInSeconds) = 0;
40 virtual void onCanDrawStateChanged(bool canDraw) = 0;
40 virtual void setNeedsRedrawOnImplThread() = 0; 41 virtual void setNeedsRedrawOnImplThread() = 0;
41 virtual void setNeedsCommitOnImplThread() = 0; 42 virtual void setNeedsCommitOnImplThread() = 0;
42 virtual void postAnimationEventsToMainThreadOnImplThread(PassOwnPtr<CCAnimat ionEventsVector>, double wallClockTime) = 0; 43 virtual void postAnimationEventsToMainThreadOnImplThread(PassOwnPtr<CCAnimat ionEventsVector>, double wallClockTime) = 0;
43 }; 44 };
44 45
45 // CCLayerTreeHostImpl owns the CCLayerImpl tree as well as associated rendering state 46 // CCLayerTreeHostImpl owns the CCLayerImpl tree as well as associated rendering state
46 class CCLayerTreeHostImpl : public CCInputHandlerClient, 47 class CCLayerTreeHostImpl : public CCInputHandlerClient,
47 public CCRendererClient, 48 public CCRendererClient,
48 public WebKit::WebCompositorOutputSurfaceClient { 49 public WebKit::WebCompositorOutputSurfaceClient {
49 WTF_MAKE_NONCOPYABLE(CCLayerTreeHostImpl); 50 WTF_MAKE_NONCOPYABLE(CCLayerTreeHostImpl);
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 134
134 CCLayerImpl* rootScrollLayer() const { return m_rootScrollLayerImpl; } 135 CCLayerImpl* rootScrollLayer() const { return m_rootScrollLayerImpl; }
135 136
136 bool visible() const { return m_visible; } 137 bool visible() const { return m_visible; }
137 void setVisible(bool); 138 void setVisible(bool);
138 139
139 int sourceFrameNumber() const { return m_sourceFrameNumber; } 140 int sourceFrameNumber() const { return m_sourceFrameNumber; }
140 void setSourceFrameNumber(int frameNumber) { m_sourceFrameNumber = frameNumb er; } 141 void setSourceFrameNumber(int frameNumber) { m_sourceFrameNumber = frameNumb er; }
141 142
142 bool contentsTexturesPurged() const { return m_contentsTexturesPurged; } 143 bool contentsTexturesPurged() const { return m_contentsTexturesPurged; }
143 void resetContentsTexturesPurged() { m_contentsTexturesPurged = false; } 144 void resetContentsTexturesPurged();
144 size_t memoryAllocationLimitBytes() const { return m_memoryAllocationLimitBy tes; } 145 size_t memoryAllocationLimitBytes() const { return m_memoryAllocationLimitBy tes; }
145 146
146 void setViewportSize(const IntSize& layoutViewportSize, const IntSize& devic eViewportSize); 147 void setViewportSize(const IntSize& layoutViewportSize, const IntSize& devic eViewportSize);
147 const IntSize& layoutViewportSize() const { return m_layoutViewportSize; } 148 const IntSize& layoutViewportSize() const { return m_layoutViewportSize; }
148 149
149 float deviceScaleFactor() const { return m_deviceScaleFactor; } 150 float deviceScaleFactor() const { return m_deviceScaleFactor; }
150 void setDeviceScaleFactor(float); 151 void setDeviceScaleFactor(float);
151 152
152 float pageScale() const { return m_pageScale; } 153 float pageScale() const { return m_pageScale; }
153 void setPageScaleFactorAndLimits(float pageScale, float minPageScale, float maxPageScale); 154 void setPageScaleFactorAndLimits(float pageScale, float minPageScale, float maxPageScale);
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 // rendering and input event hit testing. 291 // rendering and input event hit testing.
291 CCLayerList m_renderSurfaceLayerList; 292 CCLayerList m_renderSurfaceLayerList;
292 293
293 OwnPtr<CCFrameRateCounter> m_fpsCounter; 294 OwnPtr<CCFrameRateCounter> m_fpsCounter;
294 OwnPtr<CCDebugRectHistory> m_debugRectHistory; 295 OwnPtr<CCDebugRectHistory> m_debugRectHistory;
295 }; 296 };
296 297
297 }; 298 };
298 299
299 #endif 300 #endif
OLDNEW
« no previous file with comments | « cc/CCLayerTreeHost.cpp ('k') | cc/CCLayerTreeHostImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698