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

Side by Side Diff: cc/layer_tree_host_impl.h

Issue 11195011: Send vsync timebase updates to the browser compositor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Send vsync timebase updates to the browser compositor Created 8 years, 2 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
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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 virtual bool prepareToDraw(FrameData&); 143 virtual bool prepareToDraw(FrameData&);
144 virtual void drawLayers(const FrameData&); 144 virtual void drawLayers(const FrameData&);
145 // Must be called if and only if prepareToDraw was called. 145 // Must be called if and only if prepareToDraw was called.
146 void didDrawAllLayers(const FrameData&); 146 void didDrawAllLayers(const FrameData&);
147 147
148 // CCRendererClient implementation 148 // CCRendererClient implementation
149 virtual const IntSize& deviceViewportSize() const OVERRIDE; 149 virtual const IntSize& deviceViewportSize() const OVERRIDE;
150 virtual const CCLayerTreeSettings& settings() const OVERRIDE; 150 virtual const CCLayerTreeSettings& settings() const OVERRIDE;
151 virtual void didLoseContext() OVERRIDE; 151 virtual void didLoseContext() OVERRIDE;
152 virtual void onSwapBuffersComplete() OVERRIDE; 152 virtual void onSwapBuffersComplete() OVERRIDE;
153 virtual void onUpdateVSyncTime(int64 time) OVERRIDE;
153 virtual void setFullRootLayerDamage() OVERRIDE; 154 virtual void setFullRootLayerDamage() OVERRIDE;
154 virtual void releaseContentsTextures() OVERRIDE; 155 virtual void releaseContentsTextures() OVERRIDE;
155 virtual void setMemoryAllocationLimitBytes(size_t) OVERRIDE; 156 virtual void setMemoryAllocationLimitBytes(size_t) OVERRIDE;
156 157
157 // WebCompositorOutputSurfaceClient implementation. 158 // WebCompositorOutputSurfaceClient implementation.
158 virtual void onVSyncParametersChanged(double monotonicTimebase, double inter valInSeconds) OVERRIDE; 159 virtual void onVSyncParametersChanged(double monotonicTimebase, double inter valInSeconds) OVERRIDE;
159 160
160 // Implementation 161 // Implementation
161 bool canDraw(); 162 bool canDraw();
162 CCGraphicsContext* context() const; 163 CCGraphicsContext* context() const;
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 349
349 size_t m_numImplThreadScrolls; 350 size_t m_numImplThreadScrolls;
350 size_t m_numMainThreadScrolls; 351 size_t m_numMainThreadScrolls;
351 352
352 DISALLOW_COPY_AND_ASSIGN(CCLayerTreeHostImpl); 353 DISALLOW_COPY_AND_ASSIGN(CCLayerTreeHostImpl);
353 }; 354 };
354 355
355 } // namespace cc 356 } // namespace cc
356 357
357 #endif 358 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698