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

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

Issue 2162193002: Add logic to GLRenderer to support RenderPassDrawQuad copying. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up. Created 4 years, 5 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
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 <unordered_map> 8 #include <unordered_map>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "cc/base/cc_export.h" 12 #include "cc/base/cc_export.h"
13 #include "cc/output/ca_layer_overlay.h" 13 #include "cc/output/ca_layer_overlay.h"
14 #include "cc/output/overlay_processor.h" 14 #include "cc/output/overlay_processor.h"
15 #include "cc/output/renderer.h" 15 #include "cc/output/renderer.h"
16 #include "cc/quads/tile_draw_quad.h" 16 #include "cc/quads/tile_draw_quad.h"
17 #include "cc/raster/task_graph_runner.h" 17 #include "cc/raster/task_graph_runner.h"
18 #include "cc/resources/resource_provider.h" 18 #include "cc/resources/resource_provider.h"
19 #include "cc/resources/scoped_resource.h" 19 #include "cc/resources/scoped_resource.h"
20 #include "gpu/command_buffer/common/texture_in_use_response.h" 20 #include "gpu/command_buffer/common/texture_in_use_response.h"
21 #include "ui/gfx/geometry/quad_f.h" 21 #include "ui/gfx/geometry/quad_f.h"
22 22
23 namespace cc { 23 namespace cc {
24 class DrawPolygon; 24 class DrawPolygon;
25 class ResourceProvider; 25 class ResourceProvider;
26 26
27 // This is the base class for code shared between the GL and software 27 // This is the base class for code shared between the GL and software
28 // renderer implementations. "Direct" refers to the fact that it does not 28 // renderer implementations. "Direct" refers to the fact that it does not
29 // delegate rendering to another compositor. 29 // delegate rendering to another compositor.
30 class CC_EXPORT DirectRenderer : public Renderer { 30 class CC_EXPORT DirectRenderer : public Renderer,
31 public RenderPassDrawQuadCopier {
31 public: 32 public:
32 ~DirectRenderer() override; 33 ~DirectRenderer() override;
33 34
34 void DecideRenderPassAllocationsForFrame( 35 void DecideRenderPassAllocationsForFrame(
35 const RenderPassList& render_passes_in_draw_order) override; 36 const RenderPassList& render_passes_in_draw_order) override;
36 bool HasAllocatedResourcesForTesting(RenderPassId id) const override; 37 bool HasAllocatedResourcesForTesting(RenderPassId id) const override;
37 void DrawFrame(RenderPassList* render_passes_in_draw_order, 38 void DrawFrame(RenderPassList* render_passes_in_draw_order,
38 float device_scale_factor, 39 float device_scale_factor,
39 const gfx::ColorSpace& device_color_space, 40 const gfx::ColorSpace& device_color_space,
40 const gfx::Rect& device_viewport_rect, 41 const gfx::Rect& device_viewport_rect,
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 178
178 private: 179 private:
179 gfx::Size enlarge_pass_texture_amount_; 180 gfx::Size enlarge_pass_texture_amount_;
180 181
181 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); 182 DISALLOW_COPY_AND_ASSIGN(DirectRenderer);
182 }; 183 };
183 184
184 } // namespace cc 185 } // namespace cc
185 186
186 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ 187 #endif // CC_OUTPUT_DIRECT_RENDERER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698