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

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

Issue 279013002: Remove CompositeAndReadback from LayerTreeHost(Impl) and the Proxys. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm-cnr-lth-proxy-renderer: rebase-on-drawresult Created 6 years, 7 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/delegating_renderer.cc ('k') | cc/output/direct_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_DIRECT_RENDERER_H_ 5 #ifndef CC_OUTPUT_DIRECT_RENDERER_H_
6 #define CC_OUTPUT_DIRECT_RENDERER_H_ 6 #define CC_OUTPUT_DIRECT_RENDERER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/containers/scoped_ptr_hash_map.h" 10 #include "base/containers/scoped_ptr_hash_map.h"
11 #include "cc/base/cc_export.h" 11 #include "cc/base/cc_export.h"
12 #include "cc/output/overlay_processor.h" 12 #include "cc/output/overlay_processor.h"
13 #include "cc/output/renderer.h" 13 #include "cc/output/renderer.h"
14 #include "cc/resources/resource_provider.h" 14 #include "cc/resources/resource_provider.h"
15 #include "cc/resources/scoped_resource.h" 15 #include "cc/resources/scoped_resource.h"
16 #include "cc/resources/task_graph_runner.h" 16 #include "cc/resources/task_graph_runner.h"
17 17
18 namespace cc { 18 namespace cc {
19 19
20 class ResourceProvider; 20 class ResourceProvider;
21 21
22 // This is the base class for code shared between the GL and software 22 // This is the base class for code shared between the GL and software
23 // renderer implementations. "Direct" refers to the fact that it does not 23 // renderer implementations. "Direct" refers to the fact that it does not
24 // delegate rendering to another compositor. 24 // delegate rendering to another compositor.
25 class CC_EXPORT DirectRenderer : public Renderer { 25 class CC_EXPORT DirectRenderer : public Renderer {
26 public: 26 public:
27 virtual ~DirectRenderer(); 27 virtual ~DirectRenderer();
28 28
29 virtual bool CanReadPixels() const OVERRIDE;
30 virtual void DecideRenderPassAllocationsForFrame( 29 virtual void DecideRenderPassAllocationsForFrame(
31 const RenderPassList& render_passes_in_draw_order) OVERRIDE; 30 const RenderPassList& render_passes_in_draw_order) OVERRIDE;
32 virtual bool HasAllocatedResourcesForTesting(RenderPass::Id id) const 31 virtual bool HasAllocatedResourcesForTesting(RenderPass::Id id) const
33 OVERRIDE; 32 OVERRIDE;
34 virtual void DrawFrame(RenderPassList* render_passes_in_draw_order, 33 virtual void DrawFrame(RenderPassList* render_passes_in_draw_order,
35 float device_scale_factor, 34 float device_scale_factor,
36 const gfx::Rect& device_viewport_rect, 35 const gfx::Rect& device_viewport_rect,
37 const gfx::Rect& device_clip_rect, 36 const gfx::Rect& device_clip_rect,
38 bool disable_picture_quad_image_filtering) OVERRIDE; 37 bool disable_picture_quad_image_filtering) OVERRIDE;
39 38
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 gfx::Vector2d enlarge_pass_texture_amount_; 135 gfx::Vector2d enlarge_pass_texture_amount_;
137 136
138 NamespaceToken on_demand_task_namespace_; 137 NamespaceToken on_demand_task_namespace_;
139 138
140 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); 139 DISALLOW_COPY_AND_ASSIGN(DirectRenderer);
141 }; 140 };
142 141
143 } // namespace cc 142 } // namespace cc
144 143
145 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ 144 #endif // CC_OUTPUT_DIRECT_RENDERER_H_
OLDNEW
« no previous file with comments | « cc/output/delegating_renderer.cc ('k') | cc/output/direct_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698