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

Side by Side Diff: cc/output/renderer.h

Issue 12545018: Move context-related callbacks into OutputSurface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: unit test Created 7 years, 8 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/output/output_surface_client.h ('k') | cc/output/software_renderer.cc » ('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 CC_OUTPUT_RENDERER_H_ 5 #ifndef CC_OUTPUT_RENDERER_H_
6 #define CC_OUTPUT_RENDERER_H_ 6 #define CC_OUTPUT_RENDERER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "cc/base/cc_export.h" 9 #include "cc/base/cc_export.h"
10 #include "cc/quads/render_pass.h" 10 #include "cc/quads/render_pass.h"
11 #include "cc/resources/managed_memory_policy.h" 11 #include "cc/resources/managed_memory_policy.h"
12 #include "cc/trees/layer_tree_host.h" 12 #include "cc/trees/layer_tree_host.h"
13 13
14 namespace cc { 14 namespace cc {
15 15
16 class CompositorFrameAck; 16 class CompositorFrameAck;
17 class CompositorFrameMetadata; 17 class CompositorFrameMetadata;
18 class ScopedResource; 18 class ScopedResource;
19 19
20 class CC_EXPORT RendererClient { 20 class CC_EXPORT RendererClient {
21 public: 21 public:
22 virtual gfx::Size DeviceViewportSize() const = 0; 22 virtual gfx::Size DeviceViewportSize() const = 0;
23 virtual const LayerTreeSettings& Settings() const = 0; 23 virtual const LayerTreeSettings& Settings() const = 0;
24 virtual void DidLoseOutputSurface() = 0;
25 virtual void OnSwapBuffersComplete() = 0;
26 virtual void SetFullRootLayerDamage() = 0; 24 virtual void SetFullRootLayerDamage() = 0;
27 virtual void SetManagedMemoryPolicy(const ManagedMemoryPolicy& policy) = 0; 25 virtual void SetManagedMemoryPolicy(const ManagedMemoryPolicy& policy) = 0;
28 virtual void EnforceManagedMemoryPolicy( 26 virtual void EnforceManagedMemoryPolicy(
29 const ManagedMemoryPolicy& policy) = 0; 27 const ManagedMemoryPolicy& policy) = 0;
30 virtual bool HasImplThread() const = 0; 28 virtual bool HasImplThread() const = 0;
31 virtual bool ShouldClearRootRenderPass() const = 0; 29 virtual bool ShouldClearRootRenderPass() const = 0;
32 virtual CompositorFrameMetadata MakeCompositorFrameMetadata() const = 0; 30 virtual CompositorFrameMetadata MakeCompositorFrameMetadata() const = 0;
33 virtual bool AllowPartialSwap() const = 0; 31 virtual bool AllowPartialSwap() const = 0;
34 32
35 protected: 33 protected:
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 : client_(client) {} 80 : client_(client) {}
83 81
84 RendererClient* client_; 82 RendererClient* client_;
85 83
86 DISALLOW_COPY_AND_ASSIGN(Renderer); 84 DISALLOW_COPY_AND_ASSIGN(Renderer);
87 }; 85 };
88 86
89 } // namespace cc 87 } // namespace cc
90 88
91 #endif // CC_OUTPUT_RENDERER_H_ 89 #endif // CC_OUTPUT_RENDERER_H_
OLDNEW
« no previous file with comments | « cc/output/output_surface_client.h ('k') | cc/output/software_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698