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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 } | 297 } |
298 void set_have_post_sub_buffer(bool have) { | 298 void set_have_post_sub_buffer(bool have) { |
299 test_capabilities_.gpu.post_sub_buffer = have; | 299 test_capabilities_.gpu.post_sub_buffer = have; |
300 } | 300 } |
301 void set_have_discard_framebuffer(bool have) { | 301 void set_have_discard_framebuffer(bool have) { |
302 test_capabilities_.gpu.discard_framebuffer = have; | 302 test_capabilities_.gpu.discard_framebuffer = have; |
303 } | 303 } |
304 void set_support_compressed_texture_etc1(bool support) { | 304 void set_support_compressed_texture_etc1(bool support) { |
305 test_capabilities_.gpu.texture_format_etc1 = support; | 305 test_capabilities_.gpu.texture_format_etc1 = support; |
306 } | 306 } |
| 307 void set_support_texture_format_bgra8888(bool support) { |
| 308 test_capabilities_.gpu.texture_format_bgra8888 = support; |
| 309 } |
307 void set_support_texture_storage(bool support) { | 310 void set_support_texture_storage(bool support) { |
308 test_capabilities_.gpu.texture_storage = support; | 311 test_capabilities_.gpu.texture_storage = support; |
309 } | 312 } |
310 void set_support_texture_usage(bool support) { | 313 void set_support_texture_usage(bool support) { |
311 test_capabilities_.gpu.texture_usage = support; | 314 test_capabilities_.gpu.texture_usage = support; |
312 } | 315 } |
313 void set_support_sync_query(bool support) { | 316 void set_support_sync_query(bool support) { |
314 test_capabilities_.gpu.sync_query = support; | 317 test_capabilities_.gpu.sync_query = support; |
315 } | 318 } |
316 | 319 |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 | 453 |
451 scoped_refptr<Namespace> namespace_; | 454 scoped_refptr<Namespace> namespace_; |
452 static Namespace* shared_namespace_; | 455 static Namespace* shared_namespace_; |
453 | 456 |
454 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; | 457 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; |
455 }; | 458 }; |
456 | 459 |
457 } // namespace cc | 460 } // namespace cc |
458 | 461 |
459 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ | 462 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ |
OLD | NEW |