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

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

Issue 1489153002: DirectRenderer allows empty swap rects for CommitOverlayPlanes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: piman's comment Created 5 years 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/overlay_unittest.cc ('k') | cc/test/test_web_graphics_context_3d.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_RENDERER_H_ 5 #ifndef CC_OUTPUT_RENDERER_H_
6 #define CC_OUTPUT_RENDERER_H_ 6 #define CC_OUTPUT_RENDERER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "cc/base/cc_export.h" 9 #include "cc/base/cc_export.h"
10 #include "cc/output/renderer_capabilities.h" 10 #include "cc/output/renderer_capabilities.h"
(...skipping 16 matching lines...) Expand all
27 ~RendererCapabilitiesImpl(); 27 ~RendererCapabilitiesImpl();
28 28
29 // Capabilities copied to main thread. 29 // Capabilities copied to main thread.
30 ResourceFormat best_texture_format; 30 ResourceFormat best_texture_format;
31 bool allow_partial_texture_updates; 31 bool allow_partial_texture_updates;
32 int max_texture_size; 32 int max_texture_size;
33 bool using_shared_memory_resources; 33 bool using_shared_memory_resources;
34 34
35 // Capabilities used on compositor thread only. 35 // Capabilities used on compositor thread only.
36 bool using_partial_swap; 36 bool using_partial_swap;
37 // Whether it's valid to SwapBuffers with an empty rect. Trivially true when
38 // |using_partial_swap|.
39 bool allow_empty_swap;
piman 2015/12/03 22:51:23 New field needs new initializer.
37 bool using_egl_image; 40 bool using_egl_image;
38 bool using_image; 41 bool using_image;
39 bool using_discard_framebuffer; 42 bool using_discard_framebuffer;
40 bool allow_rasterize_on_demand; 43 bool allow_rasterize_on_demand;
41 int max_msaa_samples; 44 int max_msaa_samples;
42 45
43 RendererCapabilities MainThreadCapabilities() const; 46 RendererCapabilities MainThreadCapabilities() const;
44 }; 47 };
45 48
46 class CC_EXPORT RendererClient { 49 class CC_EXPORT RendererClient {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 const RendererSettings* settings_; 92 const RendererSettings* settings_;
90 bool visible_; 93 bool visible_;
91 94
92 private: 95 private:
93 DISALLOW_COPY_AND_ASSIGN(Renderer); 96 DISALLOW_COPY_AND_ASSIGN(Renderer);
94 }; 97 };
95 98
96 } // namespace cc 99 } // namespace cc
97 100
98 #endif // CC_OUTPUT_RENDERER_H_ 101 #endif // CC_OUTPUT_RENDERER_H_
OLDNEW
« no previous file with comments | « cc/output/overlay_unittest.cc ('k') | cc/test/test_web_graphics_context_3d.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698