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

Side by Side Diff: cc/CCRenderer.h

Issue 10915298: Add CCDelegatingRenderer, and corresponding IPCs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix clang 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
« no previous file with comments | « cc/CCRenderPassDrawQuad.h ('k') | cc/CCRendererGL.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 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 #include <wtf/PassRefPtr.h> 13 #include <wtf/PassRefPtr.h>
14 14
15 namespace WebKit {
16 struct WebCompositorFrameAck;
17 }
18
15 namespace cc { 19 namespace cc {
16 20
17 class CCScopedTexture; 21 class CCScopedTexture;
22 struct CompositorFrameAck;
18 23
19 class CCRendererClient { 24 class CCRendererClient {
20 public: 25 public:
21 virtual const IntSize& deviceViewportSize() const = 0; 26 virtual const IntSize& deviceViewportSize() const = 0;
22 virtual const CCLayerTreeSettings& settings() const = 0; 27 virtual const CCLayerTreeSettings& settings() const = 0;
23 virtual void didLoseContext() = 0; 28 virtual void didLoseContext() = 0;
24 virtual void onSwapBuffersComplete() = 0; 29 virtual void onSwapBuffersComplete() = 0;
25 virtual void releaseContentsTextures() = 0; 30 virtual void releaseContentsTextures() = 0;
26 virtual void setFullRootLayerDamage() = 0; 31 virtual void setFullRootLayerDamage() = 0;
27 virtual void setMemoryAllocationLimitBytes(size_t) = 0; 32 virtual void setMemoryAllocationLimitBytes(size_t) = 0;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 65
61 virtual void doNoOp() { } 66 virtual void doNoOp() { }
62 // puts backbuffer onscreen 67 // puts backbuffer onscreen
63 virtual bool swapBuffers() = 0; 68 virtual bool swapBuffers() = 0;
64 69
65 virtual void getFramebufferPixels(void *pixels, const IntRect&) = 0; 70 virtual void getFramebufferPixels(void *pixels, const IntRect&) = 0;
66 71
67 virtual bool isContextLost(); 72 virtual bool isContextLost();
68 73
69 virtual void setVisible(bool) = 0; 74 virtual void setVisible(bool) = 0;
75 virtual void onSendFrameToParentCompositorAck(const CompositorFrameAck&) { }
70 76
71 protected: 77 protected:
72 explicit CCRenderer(CCRendererClient* client) 78 explicit CCRenderer(CCRendererClient* client)
73 : m_client(client) 79 : m_client(client)
74 { 80 {
75 } 81 }
76 82
77 CCRendererClient* m_client; 83 CCRendererClient* m_client;
78 84
79 DISALLOW_COPY_AND_ASSIGN(CCRenderer); 85 DISALLOW_COPY_AND_ASSIGN(CCRenderer);
80 }; 86 };
81 87
82 } 88 }
83 89
84 #endif // CCRenderer_h 90 #endif // CCRenderer_h
OLDNEW
« no previous file with comments | « cc/CCRenderPassDrawQuad.h ('k') | cc/CCRendererGL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698