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 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 void set_support_sync_query(bool support) { | 335 void set_support_sync_query(bool support) { |
336 test_capabilities_.sync_query = support; | 336 test_capabilities_.sync_query = support; |
337 } | 337 } |
338 void set_support_image(bool support) { test_capabilities_.image = support; } | 338 void set_support_image(bool support) { test_capabilities_.image = support; } |
339 void set_support_texture_rectangle(bool support) { | 339 void set_support_texture_rectangle(bool support) { |
340 test_capabilities_.texture_rectangle = support; | 340 test_capabilities_.texture_rectangle = support; |
341 } | 341 } |
342 void set_support_texture_half_float_linear(bool support) { | 342 void set_support_texture_half_float_linear(bool support) { |
343 test_capabilities_.texture_half_float_linear = support; | 343 test_capabilities_.texture_half_float_linear = support; |
344 } | 344 } |
| 345 void set_support_texture_rg(bool support) { |
| 346 test_capabilities_.texture_rg = support; |
| 347 } |
345 void set_msaa_is_slow(bool msaa_is_slow) { | 348 void set_msaa_is_slow(bool msaa_is_slow) { |
346 test_capabilities_.msaa_is_slow = msaa_is_slow; | 349 test_capabilities_.msaa_is_slow = msaa_is_slow; |
347 } | 350 } |
348 | 351 |
349 // When this context is lost, all contexts in its share group are also lost. | 352 // When this context is lost, all contexts in its share group are also lost. |
350 void add_share_group_context(TestWebGraphicsContext3D* context3d) { | 353 void add_share_group_context(TestWebGraphicsContext3D* context3d) { |
351 shared_contexts_.push_back(context3d); | 354 shared_contexts_.push_back(context3d); |
352 } | 355 } |
353 | 356 |
354 void set_max_texture_size(int size) { max_texture_size_ = size; } | 357 void set_max_texture_size(int size) { max_texture_size_ = size; } |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_ |
OLD | NEW |