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

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: merge fix 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 #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;
18 22
19 class CCRendererClient { 23 class CCRendererClient {
20 public: 24 public:
21 virtual const IntSize& deviceViewportSize() const = 0; 25 virtual const IntSize& deviceViewportSize() const = 0;
22 virtual const CCLayerTreeSettings& settings() const = 0; 26 virtual const CCLayerTreeSettings& settings() const = 0;
23 virtual void didLoseContext() = 0; 27 virtual void didLoseContext() = 0;
24 virtual void onSwapBuffersComplete() = 0; 28 virtual void onSwapBuffersComplete() = 0;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 64
61 virtual void doNoOp() { } 65 virtual void doNoOp() { }
62 // puts backbuffer onscreen 66 // puts backbuffer onscreen
63 virtual bool swapBuffers() = 0; 67 virtual bool swapBuffers() = 0;
64 68
65 virtual void getFramebufferPixels(void *pixels, const IntRect&) = 0; 69 virtual void getFramebufferPixels(void *pixels, const IntRect&) = 0;
66 70
67 virtual bool isContextLost(); 71 virtual bool isContextLost();
68 72
69 virtual void setVisible(bool) = 0; 73 virtual void setVisible(bool) = 0;
74 virtual void onSendFrameToParentCompositorAck(const WebKit::WebCompositorFra meAck&) { }
70 75
71 protected: 76 protected:
72 explicit CCRenderer(CCRendererClient* client) 77 explicit CCRenderer(CCRendererClient* client)
73 : m_client(client) 78 : m_client(client)
74 { 79 {
75 } 80 }
76 81
77 CCRendererClient* m_client; 82 CCRendererClient* m_client;
78 83
79 DISALLOW_COPY_AND_ASSIGN(CCRenderer); 84 DISALLOW_COPY_AND_ASSIGN(CCRenderer);
80 }; 85 };
81 86
82 } 87 }
83 88
84 #endif // CCRenderer_h 89 #endif // CCRenderer_h
OLDNEW
« no previous file with comments | « cc/CCRenderPassDrawQuad.h ('k') | cc/CCRendererGL.cpp » ('j') | cc/transferable_resource.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698