| OLD | NEW |
| 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 Loading... |
| 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 } | |
| 320 void set_have_discard_framebuffer(bool have) { | 317 void set_have_discard_framebuffer(bool have) { |
| 321 test_capabilities_.gpu.discard_framebuffer = have; | 318 test_capabilities_.gpu.discard_framebuffer = have; |
| 322 } | 319 } |
| 323 void set_support_compressed_texture_etc1(bool support) { | 320 void set_support_compressed_texture_etc1(bool support) { |
| 324 test_capabilities_.gpu.texture_format_etc1 = support; | 321 test_capabilities_.gpu.texture_format_etc1 = support; |
| 325 } | 322 } |
| 326 void set_support_texture_format_bgra8888(bool support) { | 323 void set_support_texture_format_bgra8888(bool support) { |
| 327 test_capabilities_.gpu.texture_format_bgra8888 = support; | 324 test_capabilities_.gpu.texture_format_bgra8888 = support; |
| 328 } | 325 } |
| 329 void set_support_texture_storage(bool support) { | 326 void set_support_texture_storage(bool support) { |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 | 484 |
| 488 scoped_refptr<Namespace> namespace_; | 485 scoped_refptr<Namespace> namespace_; |
| 489 static Namespace* shared_namespace_; | 486 static Namespace* shared_namespace_; |
| 490 | 487 |
| 491 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; | 488 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; |
| 492 }; | 489 }; |
| 493 | 490 |
| 494 } // namespace cc | 491 } // namespace cc |
| 495 | 492 |
| 496 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ | 493 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ |
| OLD | NEW |