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

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

Issue 2253823002: cc: Remove all impl-side caps from RendererCapabilitiesImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@delete-renderer-base-class
Patch Set: renderercaps: ennereview Created 4 years, 4 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/renderer_capabilities.cc ('k') | cc/output/renderer_capabilities_impl.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_RENDERER_CAPABILITIES_IMPL_H_ 5 #ifndef CC_OUTPUT_RENDERER_CAPABILITIES_IMPL_H_
6 #define CC_OUTPUT_RENDERER_CAPABILITIES_IMPL_H_ 6 #define CC_OUTPUT_RENDERER_CAPABILITIES_IMPL_H_
7 7
8 #include "cc/output/renderer_capabilities.h" 8 #include "cc/output/renderer_capabilities.h"
9 9
10 namespace cc { 10 namespace cc {
11 11
12 struct RendererCapabilitiesImpl { 12 struct RendererCapabilitiesImpl {
13 RendererCapabilitiesImpl(); 13 RendererCapabilitiesImpl();
14 ~RendererCapabilitiesImpl(); 14 ~RendererCapabilitiesImpl();
15 15
16 // Capabilities copied to main thread. 16 // Capabilities copied to main thread.
17 ResourceFormat best_texture_format = RGBA_8888; 17 ResourceFormat best_texture_format = RGBA_8888;
18 bool allow_partial_texture_updates = false;
19 int max_texture_size = 0; 18 int max_texture_size = 0;
20 bool using_shared_memory_resources = false; 19 bool using_shared_memory_resources = false;
21 20
22 // Capabilities used on compositor thread only.
23 bool using_partial_swap = false;
24 // Whether it's valid to SwapBuffers with an empty rect. Trivially true when
25 // |using_partial_swap|.
26 bool allow_empty_swap = false;
27 bool using_egl_image = false;
28 bool using_image = false;
29 bool using_discard_framebuffer = false;
30 bool allow_rasterize_on_demand = false;
31 int max_msaa_samples = 0;
32
33 RendererCapabilities MainThreadCapabilities() const; 21 RendererCapabilities MainThreadCapabilities() const;
34 }; 22 };
35 23
36 } // namespace cc 24 } // namespace cc
37 25
38 #endif // CC_OUTPUT_RENDERER_CAPABILITIES_IMPL_H_ 26 #endif // CC_OUTPUT_RENDERER_CAPABILITIES_IMPL_H_
OLDNEW
« no previous file with comments | « cc/output/renderer_capabilities.cc ('k') | cc/output/renderer_capabilities_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698