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

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

Issue 250083002: cc: Use the onscreen context to perform composited ganesh filters. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: onscreenfilters: nit Created 6 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 | « no previous file | cc/output/gl_renderer.h » ('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 ResourceProvider* resource_provider() const { return resource_provider_; }
30
31 virtual bool CanReadPixels() const OVERRIDE; 29 virtual bool CanReadPixels() const OVERRIDE;
32 virtual void DecideRenderPassAllocationsForFrame( 30 virtual void DecideRenderPassAllocationsForFrame(
33 const RenderPassList& render_passes_in_draw_order) OVERRIDE; 31 const RenderPassList& render_passes_in_draw_order) OVERRIDE;
34 virtual bool HasAllocatedResourcesForTesting(RenderPass::Id id) const 32 virtual bool HasAllocatedResourcesForTesting(RenderPass::Id id) const
35 OVERRIDE; 33 OVERRIDE;
36 virtual void DrawFrame(RenderPassList* render_passes_in_draw_order, 34 virtual void DrawFrame(RenderPassList* render_passes_in_draw_order,
37 ContextProvider* offscreen_context_provider, 35 ContextProvider* offscreen_context_provider,
38 float device_scale_factor, 36 float device_scale_factor,
39 const gfx::Rect& device_viewport_rect, 37 const gfx::Rect& device_viewport_rect,
40 const gfx::Rect& device_clip_rect, 38 const gfx::Rect& device_clip_rect,
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 gfx::Vector2d enlarge_pass_texture_amount_; 139 gfx::Vector2d enlarge_pass_texture_amount_;
142 140
143 NamespaceToken on_demand_task_namespace_; 141 NamespaceToken on_demand_task_namespace_;
144 142
145 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); 143 DISALLOW_COPY_AND_ASSIGN(DirectRenderer);
146 }; 144 };
147 145
148 } // namespace cc 146 } // namespace cc
149 147
150 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ 148 #endif // CC_OUTPUT_DIRECT_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/output/gl_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698