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

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

Issue 1057283003: Remove parts of //cc we aren't using (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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
« no previous file with comments | « cc/output/delegating_renderer.h ('k') | cc/output/filter_operation.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"
12 #include "cc/base/scoped_ptr_deque.h" 11 #include "cc/base/scoped_ptr_deque.h"
13 #include "cc/output/overlay_processor.h" 12 #include "cc/output/overlay_processor.h"
14 #include "cc/output/renderer.h" 13 #include "cc/output/renderer.h"
15 #include "cc/resources/resource_provider.h" 14 #include "cc/resources/resource_provider.h"
16 #include "cc/resources/scoped_resource.h" 15 #include "cc/resources/scoped_resource.h"
17 #include "cc/resources/task_graph_runner.h"
18 #include "ui/gfx/geometry/quad_f.h" 16 #include "ui/gfx/geometry/quad_f.h"
19 17
20 namespace cc { 18 namespace cc {
21 19
22 class DrawPolygon; 20 class DrawPolygon;
23 class ResourceProvider; 21 class ResourceProvider;
24 22
25 // This is the base class for code shared between the GL and software 23 // This is the base class for code shared between the GL and software
26 // renderer implementations. "Direct" refers to the fact that it does not 24 // renderer implementations. "Direct" refers to the fact that it does not
27 // delegate rendering to another compositor. 25 // delegate rendering to another compositor.
28 class CC_EXPORT DirectRenderer : public Renderer { 26 class DirectRenderer : public Renderer {
29 public: 27 public:
30 ~DirectRenderer() override; 28 ~DirectRenderer() override;
31 29
32 void DecideRenderPassAllocationsForFrame( 30 void DecideRenderPassAllocationsForFrame(
33 const RenderPassList& render_passes_in_draw_order) override; 31 const RenderPassList& render_passes_in_draw_order) override;
34 bool HasAllocatedResourcesForTesting(RenderPassId id) const override; 32 bool HasAllocatedResourcesForTesting(RenderPassId id) const override;
35 void DrawFrame(RenderPassList* render_passes_in_draw_order, 33 void DrawFrame(RenderPassList* render_passes_in_draw_order,
36 float device_scale_factor, 34 float device_scale_factor,
37 const gfx::Rect& device_viewport_rect, 35 const gfx::Rect& device_viewport_rect,
38 const gfx::Rect& device_clip_rect, 36 const gfx::Rect& device_clip_rect,
39 bool disable_picture_quad_image_filtering) override; 37 bool disable_picture_quad_image_filtering) override;
40 38
41 struct CC_EXPORT DrawingFrame { 39 struct DrawingFrame {
42 DrawingFrame(); 40 DrawingFrame();
43 ~DrawingFrame(); 41 ~DrawingFrame();
44 42
45 const RenderPassList* render_passes_in_draw_order; 43 const RenderPassList* render_passes_in_draw_order;
46 const RenderPass* root_render_pass; 44 const RenderPass* root_render_pass;
47 const RenderPass* current_render_pass; 45 const RenderPass* current_render_pass;
48 const ScopedResource* current_texture; 46 const ScopedResource* current_texture;
49 47
50 gfx::Rect root_damage_rect; 48 gfx::Rect root_damage_rect;
51 gfx::Rect device_viewport_rect; 49 gfx::Rect device_viewport_rect;
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 154
157 private: 155 private:
158 gfx::Vector2d enlarge_pass_texture_amount_; 156 gfx::Vector2d enlarge_pass_texture_amount_;
159 157
160 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); 158 DISALLOW_COPY_AND_ASSIGN(DirectRenderer);
161 }; 159 };
162 160
163 } // namespace cc 161 } // namespace cc
164 162
165 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ 163 #endif // CC_OUTPUT_DIRECT_RENDERER_H_
OLDNEW
« no previous file with comments | « cc/output/delegating_renderer.h ('k') | cc/output/filter_operation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698