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

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

Issue 2267263002: cc: Delete all the RendererCapabilities. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-prepare-mailbox-param
Patch Set: renderer-caps: rebase Created 4 years, 3 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.cc ('k') | 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 <memory> 8 #include <memory>
9 #include <unordered_map> 9 #include <unordered_map>
10 10
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "cc/base/cc_export.h" 13 #include "cc/base/cc_export.h"
14 #include "cc/output/ca_layer_overlay.h" 14 #include "cc/output/ca_layer_overlay.h"
15 #include "cc/output/compositor_frame_metadata.h" 15 #include "cc/output/compositor_frame_metadata.h"
16 #include "cc/output/overlay_processor.h" 16 #include "cc/output/overlay_processor.h"
17 #include "cc/output/renderer_capabilities_impl.h"
18 #include "cc/quads/tile_draw_quad.h" 17 #include "cc/quads/tile_draw_quad.h"
19 #include "cc/resources/resource_provider.h" 18 #include "cc/resources/resource_provider.h"
20 #include "gpu/command_buffer/common/texture_in_use_response.h" 19 #include "gpu/command_buffer/common/texture_in_use_response.h"
21 #include "ui/gfx/geometry/quad_f.h" 20 #include "ui/gfx/geometry/quad_f.h"
22 #include "ui/gfx/geometry/rect.h" 21 #include "ui/gfx/geometry/rect.h"
23 22
24 namespace gfx { 23 namespace gfx {
25 class ColorSpace; 24 class ColorSpace;
26 } 25 }
27 26
(...skipping 25 matching lines...) Expand all
53 void DecideRenderPassAllocationsForFrame( 52 void DecideRenderPassAllocationsForFrame(
54 const RenderPassList& render_passes_in_draw_order); 53 const RenderPassList& render_passes_in_draw_order);
55 bool HasAllocatedResourcesForTesting(RenderPassId id) const; 54 bool HasAllocatedResourcesForTesting(RenderPassId id) const;
56 void DrawFrame(RenderPassList* render_passes_in_draw_order, 55 void DrawFrame(RenderPassList* render_passes_in_draw_order,
57 float device_scale_factor, 56 float device_scale_factor,
58 const gfx::ColorSpace& device_color_space, 57 const gfx::ColorSpace& device_color_space,
59 const gfx::Rect& device_viewport_rect, 58 const gfx::Rect& device_viewport_rect,
60 const gfx::Rect& device_clip_rect); 59 const gfx::Rect& device_clip_rect);
61 60
62 // Public interface implemented by subclasses. 61 // Public interface implemented by subclasses.
63 virtual const RendererCapabilitiesImpl& Capabilities() const = 0;
64 virtual void SwapBuffers(CompositorFrameMetadata metadata) = 0; 62 virtual void SwapBuffers(CompositorFrameMetadata metadata) = 0;
65 virtual void SwapBuffersComplete() {} 63 virtual void SwapBuffersComplete() {}
66 virtual void DidReceiveTextureInUseResponses( 64 virtual void DidReceiveTextureInUseResponses(
67 const gpu::TextureInUseResponses& responses) {} 65 const gpu::TextureInUseResponses& responses) {}
68 66
69 // Allow tests to enlarge the texture size of non-root render passes to 67 // Allow tests to enlarge the texture size of non-root render passes to
70 // verify cases where the texture doesn't match the render pass size. 68 // verify cases where the texture doesn't match the render pass size.
71 void SetEnlargePassTextureAmountForTesting(const gfx::Size& amount) { 69 void SetEnlargePassTextureAmountForTesting(const gfx::Size& amount) {
72 enlarge_pass_texture_amount_ = amount; 70 enlarge_pass_texture_amount_ = amount;
73 } 71 }
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 private: 207 private:
210 bool initialized_ = false; 208 bool initialized_ = false;
211 gfx::Size enlarge_pass_texture_amount_; 209 gfx::Size enlarge_pass_texture_amount_;
212 210
213 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); 211 DISALLOW_COPY_AND_ASSIGN(DirectRenderer);
214 }; 212 };
215 213
216 } // namespace cc 214 } // namespace cc
217 215
218 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ 216 #endif // CC_OUTPUT_DIRECT_RENDERER_H_
OLDNEW
« no previous file with comments | « cc/output/delegating_renderer.cc ('k') | cc/output/gl_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698