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

Side by Side Diff: cc/renderer.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 CCRenderer_h 5 #ifndef CCRenderer_h
6 #define CCRenderer_h 6 #define CCRenderer_h
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "CCLayerTreeHost.h" 9 #include "CCLayerTreeHost.h"
10 #include "CCRenderPass.h" 10 #include "CCRenderPass.h"
11 #include "FloatQuad.h" 11 #include "FloatQuad.h"
12 #include "IntRect.h" 12 #include "IntRect.h"
13 13
14 namespace cc { 14 namespace cc {
15 15
16 class CCScopedTexture; 16 class CCScopedTexture;
17 17
18 class CCRendererClient { 18 class CCRendererClient {
19 public: 19 public:
20 virtual const IntSize& deviceViewportSize() const = 0; 20 virtual const IntSize& deviceViewportSize() const = 0;
21 virtual const CCLayerTreeSettings& settings() const = 0; 21 virtual const CCLayerTreeSettings& settings() const = 0;
22 virtual void didLoseContext() = 0; 22 virtual void didLoseContext() = 0;
23 virtual void onSwapBuffersComplete() = 0; 23 virtual void onSwapBuffersComplete() = 0;
24 virtual void onUpdateVSyncTime(int64 time) = 0;
24 virtual void releaseContentsTextures() = 0; 25 virtual void releaseContentsTextures() = 0;
25 virtual void setFullRootLayerDamage() = 0; 26 virtual void setFullRootLayerDamage() = 0;
26 virtual void setMemoryAllocationLimitBytes(size_t) = 0; 27 virtual void setMemoryAllocationLimitBytes(size_t) = 0;
27 protected: 28 protected:
28 virtual ~CCRendererClient() { } 29 virtual ~CCRendererClient() { }
29 }; 30 };
30 31
31 class CCRenderer { 32 class CCRenderer {
32 public: 33 public:
33 // This enum defines the various resource pools for the CCResourceProvider 34 // This enum defines the various resource pools for the CCResourceProvider
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 } 75 }
75 76
76 CCRendererClient* m_client; 77 CCRendererClient* m_client;
77 78
78 DISALLOW_COPY_AND_ASSIGN(CCRenderer); 79 DISALLOW_COPY_AND_ASSIGN(CCRenderer);
79 }; 80 };
80 81
81 } 82 }
82 83
83 #endif // CCRenderer_h 84 #endif // CCRenderer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698