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

Side by Side Diff: cc/CCLayerTreeHostImpl.h

Issue 10919320: Integrate r128344 and r128253 from WebKit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit test build break 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 22 matching lines...) Expand all
33 // CCLayerTreeHost->CCProxy callback interface. 33 // CCLayerTreeHost->CCProxy callback interface.
34 class CCLayerTreeHostImplClient { 34 class CCLayerTreeHostImplClient {
35 public: 35 public:
36 virtual void didLoseContextOnImplThread() = 0; 36 virtual void didLoseContextOnImplThread() = 0;
37 virtual void onSwapBuffersCompleteOnImplThread() = 0; 37 virtual void onSwapBuffersCompleteOnImplThread() = 0;
38 virtual void onVSyncParametersChanged(double monotonicTimebase, double inter valInSeconds) = 0; 38 virtual void onVSyncParametersChanged(double monotonicTimebase, double inter valInSeconds) = 0;
39 virtual void onCanDrawStateChanged(bool canDraw) = 0; 39 virtual void onCanDrawStateChanged(bool canDraw) = 0;
40 virtual void setNeedsRedrawOnImplThread() = 0; 40 virtual void setNeedsRedrawOnImplThread() = 0;
41 virtual void setNeedsCommitOnImplThread() = 0; 41 virtual void setNeedsCommitOnImplThread() = 0;
42 virtual void postAnimationEventsToMainThreadOnImplThread(PassOwnPtr<CCAnimat ionEventsVector>, double wallClockTime) = 0; 42 virtual void postAnimationEventsToMainThreadOnImplThread(PassOwnPtr<CCAnimat ionEventsVector>, double wallClockTime) = 0;
43 virtual void releaseContentsTexturesOnImplThread() = 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);
50 typedef Vector<CCLayerImpl*> CCLayerList; 51 typedef Vector<CCLayerImpl*> CCLayerList;
51 52
52 public: 53 public:
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 131
131 CCLayerImpl* rootScrollLayer() const { return m_rootScrollLayerImpl; } 132 CCLayerImpl* rootScrollLayer() const { return m_rootScrollLayerImpl; }
132 133
133 bool visible() const { return m_visible; } 134 bool visible() const { return m_visible; }
134 void setVisible(bool); 135 void setVisible(bool);
135 136
136 int sourceFrameNumber() const { return m_sourceFrameNumber; } 137 int sourceFrameNumber() const { return m_sourceFrameNumber; }
137 void setSourceFrameNumber(int frameNumber) { m_sourceFrameNumber = frameNumb er; } 138 void setSourceFrameNumber(int frameNumber) { m_sourceFrameNumber = frameNumb er; }
138 139
139 bool contentsTexturesPurged() const { return m_contentsTexturesPurged; } 140 bool contentsTexturesPurged() const { return m_contentsTexturesPurged; }
141 void setContentsTexturesPurged();
140 void resetContentsTexturesPurged(); 142 void resetContentsTexturesPurged();
141 size_t memoryAllocationLimitBytes() const { return m_memoryAllocationLimitBy tes; } 143 size_t memoryAllocationLimitBytes() const { return m_memoryAllocationLimitBy tes; }
142 144
143 void setViewportSize(const IntSize& layoutViewportSize, const IntSize& devic eViewportSize); 145 void setViewportSize(const IntSize& layoutViewportSize, const IntSize& devic eViewportSize);
144 const IntSize& layoutViewportSize() const { return m_layoutViewportSize; } 146 const IntSize& layoutViewportSize() const { return m_layoutViewportSize; }
145 147
146 float deviceScaleFactor() const { return m_deviceScaleFactor; } 148 float deviceScaleFactor() const { return m_deviceScaleFactor; }
147 void setDeviceScaleFactor(float); 149 void setDeviceScaleFactor(float);
148 150
149 float pageScale() const { return m_pageScale; } 151 float pageScale() const { return m_pageScale; }
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 // rendering and input event hit testing. 287 // rendering and input event hit testing.
286 CCLayerList m_renderSurfaceLayerList; 288 CCLayerList m_renderSurfaceLayerList;
287 289
288 OwnPtr<CCFrameRateCounter> m_fpsCounter; 290 OwnPtr<CCFrameRateCounter> m_fpsCounter;
289 OwnPtr<CCDebugRectHistory> m_debugRectHistory; 291 OwnPtr<CCDebugRectHistory> m_debugRectHistory;
290 }; 292 };
291 293
292 }; 294 };
293 295
294 #endif 296 #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