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

Side by Side Diff: cc/test/test_web_graphics_context_3d.h

Issue 1489153002: DirectRenderer allows empty swap rects for CommitOverlayPlanes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Initialize allow_empty_swap 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/renderer.cc ('k') | content/browser/renderer_host/compositor_impl_android.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 5 #ifndef CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
6 #define CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 6 #define CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 void set_have_extension_io_surface(bool have) { 307 void set_have_extension_io_surface(bool have) {
308 test_capabilities_.gpu.iosurface = have; 308 test_capabilities_.gpu.iosurface = have;
309 test_capabilities_.gpu.texture_rectangle = have; 309 test_capabilities_.gpu.texture_rectangle = have;
310 } 310 }
311 void set_have_extension_egl_image(bool have) { 311 void set_have_extension_egl_image(bool have) {
312 test_capabilities_.gpu.egl_image_external = have; 312 test_capabilities_.gpu.egl_image_external = have;
313 } 313 }
314 void set_have_post_sub_buffer(bool have) { 314 void set_have_post_sub_buffer(bool have) {
315 test_capabilities_.gpu.post_sub_buffer = have; 315 test_capabilities_.gpu.post_sub_buffer = have;
316 } 316 }
317 void set_have_commit_overlay_planes(bool have) {
318 test_capabilities_.gpu.commit_overlay_planes = have;
319 }
317 void set_have_discard_framebuffer(bool have) { 320 void set_have_discard_framebuffer(bool have) {
318 test_capabilities_.gpu.discard_framebuffer = have; 321 test_capabilities_.gpu.discard_framebuffer = have;
319 } 322 }
320 void set_support_compressed_texture_etc1(bool support) { 323 void set_support_compressed_texture_etc1(bool support) {
321 test_capabilities_.gpu.texture_format_etc1 = support; 324 test_capabilities_.gpu.texture_format_etc1 = support;
322 } 325 }
323 void set_support_texture_format_bgra8888(bool support) { 326 void set_support_texture_format_bgra8888(bool support) {
324 test_capabilities_.gpu.texture_format_bgra8888 = support; 327 test_capabilities_.gpu.texture_format_bgra8888 = support;
325 } 328 }
326 void set_support_texture_storage(bool support) { 329 void set_support_texture_storage(bool support) {
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 487
485 scoped_refptr<Namespace> namespace_; 488 scoped_refptr<Namespace> namespace_;
486 static Namespace* shared_namespace_; 489 static Namespace* shared_namespace_;
487 490
488 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; 491 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_;
489 }; 492 };
490 493
491 } // namespace cc 494 } // namespace cc
492 495
493 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 496 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
OLDNEW
« no previous file with comments | « cc/output/renderer.cc ('k') | content/browser/renderer_host/compositor_impl_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698