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

Side by Side Diff: cc/output/delegating_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/layers/picture_layer_impl_unittest.cc ('k') | cc/output/delegating_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_DELEGATING_RENDERER_H_ 5 #ifndef CC_OUTPUT_DELEGATING_RENDERER_H_
6 #define CC_OUTPUT_DELEGATING_RENDERER_H_ 6 #define CC_OUTPUT_DELEGATING_RENDERER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "cc/base/cc_export.h" 11 #include "cc/base/cc_export.h"
12 #include "cc/output/compositor_frame.h" 12 #include "cc/output/compositor_frame.h"
13 #include "cc/output/renderer_capabilities_impl.h"
14 13
15 namespace cc { 14 namespace cc {
16 class OutputSurface; 15 class OutputSurface;
17 class ResourceProvider; 16 class ResourceProvider;
18 17
19 class CC_EXPORT DelegatingRenderer { 18 class CC_EXPORT DelegatingRenderer {
20 public: 19 public:
21 DelegatingRenderer(OutputSurface* output_surface, 20 DelegatingRenderer(OutputSurface* output_surface,
22 ResourceProvider* resource_provider); 21 ResourceProvider* resource_provider);
23 ~DelegatingRenderer(); 22 ~DelegatingRenderer();
24 23
25 const RendererCapabilitiesImpl& Capabilities() const { return capabilities_; }
26
27 void DrawFrame(RenderPassList* render_passes_in_draw_order); 24 void DrawFrame(RenderPassList* render_passes_in_draw_order);
28 25
29 void SwapBuffers(CompositorFrameMetadata metadata); 26 void SwapBuffers(CompositorFrameMetadata metadata);
30 27
31 private: 28 private:
32 OutputSurface* const output_surface_; 29 OutputSurface* const output_surface_;
33 ResourceProvider* const resource_provider_; 30 ResourceProvider* const resource_provider_;
34 RendererCapabilitiesImpl capabilities_;
35 std::unique_ptr<DelegatedFrameData> delegated_frame_data_; 31 std::unique_ptr<DelegatedFrameData> delegated_frame_data_;
36 32
37 DISALLOW_COPY_AND_ASSIGN(DelegatingRenderer); 33 DISALLOW_COPY_AND_ASSIGN(DelegatingRenderer);
38 }; 34 };
39 35
40 } // namespace cc 36 } // namespace cc
41 37
42 #endif // CC_OUTPUT_DELEGATING_RENDERER_H_ 38 #endif // CC_OUTPUT_DELEGATING_RENDERER_H_
OLDNEW
« no previous file with comments | « cc/layers/picture_layer_impl_unittest.cc ('k') | cc/output/delegating_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698