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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 } | 337 } |
338 void set_support_sync_query(bool support) { | 338 void set_support_sync_query(bool support) { |
339 test_capabilities_.sync_query = support; | 339 test_capabilities_.sync_query = support; |
340 } | 340 } |
341 void set_support_texture_rectangle(bool support) { | 341 void set_support_texture_rectangle(bool support) { |
342 test_capabilities_.texture_rectangle = support; | 342 test_capabilities_.texture_rectangle = support; |
343 } | 343 } |
344 void set_support_texture_half_float_linear(bool support) { | 344 void set_support_texture_half_float_linear(bool support) { |
345 test_capabilities_.texture_half_float_linear = support; | 345 test_capabilities_.texture_half_float_linear = support; |
346 } | 346 } |
| 347 void set_support_texture_norm16(bool support) { |
| 348 test_capabilities_.texture_norm16 = support; |
| 349 } |
347 void set_msaa_is_slow(bool msaa_is_slow) { | 350 void set_msaa_is_slow(bool msaa_is_slow) { |
348 test_capabilities_.msaa_is_slow = msaa_is_slow; | 351 test_capabilities_.msaa_is_slow = msaa_is_slow; |
349 } | 352 } |
350 void set_gpu_rasterization(bool gpu_rasterization) { | 353 void set_gpu_rasterization(bool gpu_rasterization) { |
351 test_capabilities_.gpu_rasterization = gpu_rasterization; | 354 test_capabilities_.gpu_rasterization = gpu_rasterization; |
352 } | 355 } |
353 void set_avoid_stencil_buffers(bool avoid_stencil_buffers) { | 356 void set_avoid_stencil_buffers(bool avoid_stencil_buffers) { |
354 test_capabilities_.avoid_stencil_buffers = avoid_stencil_buffers; | 357 test_capabilities_.avoid_stencil_buffers = avoid_stencil_buffers; |
355 } | 358 } |
356 void set_enable_dc_layers(bool support) { | 359 void set_enable_dc_layers(bool support) { |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 | 501 |
499 scoped_refptr<Namespace> namespace_; | 502 scoped_refptr<Namespace> namespace_; |
500 static Namespace* shared_namespace_; | 503 static Namespace* shared_namespace_; |
501 | 504 |
502 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; | 505 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; |
503 }; | 506 }; |
504 | 507 |
505 } // namespace cc | 508 } // namespace cc |
506 | 509 |
507 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ | 510 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ |
OLD | NEW |