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

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

Issue 2772883002: [Chromecast] Fix assert failure + add test in SwapWithBounds path (Closed)
Patch Set: Created 3 years, 9 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/gl_renderer_unittest.cc ('k') | no next file » | 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...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_.iosurface = have; 308 test_capabilities_.iosurface = have;
309 test_capabilities_.texture_rectangle = have; 309 test_capabilities_.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_.egl_image_external = have; 312 test_capabilities_.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_.post_sub_buffer = have; 315 test_capabilities_.post_sub_buffer = have;
316 } 316 }
317 void set_have_swap_buffers_with_bounds(bool have) {
318 test_capabilities_.swap_buffers_with_bounds = have;
319 }
317 void set_have_commit_overlay_planes(bool have) { 320 void set_have_commit_overlay_planes(bool have) {
318 test_capabilities_.commit_overlay_planes = have; 321 test_capabilities_.commit_overlay_planes = have;
319 } 322 }
320 void set_have_discard_framebuffer(bool have) { 323 void set_have_discard_framebuffer(bool have) {
321 test_capabilities_.discard_framebuffer = have; 324 test_capabilities_.discard_framebuffer = have;
322 } 325 }
323 void set_support_compressed_texture_etc1(bool support) { 326 void set_support_compressed_texture_etc1(bool support) {
324 test_capabilities_.texture_format_etc1 = support; 327 test_capabilities_.texture_format_etc1 = support;
325 } 328 }
326 void set_support_texture_format_bgra8888(bool support) { 329 void set_support_texture_format_bgra8888(bool support) {
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 492
490 scoped_refptr<Namespace> namespace_; 493 scoped_refptr<Namespace> namespace_;
491 static Namespace* shared_namespace_; 494 static Namespace* shared_namespace_;
492 495
493 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; 496 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_;
494 }; 497 };
495 498
496 } // namespace cc 499 } // namespace cc
497 500
498 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 501 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
OLDNEW
« no previous file with comments | « cc/output/gl_renderer_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698