| 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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_storage(bool support) { | 307 void set_support_texture_storage(bool support) { |
| 308 test_capabilities_.gpu.texture_storage = support; | 308 test_capabilities_.gpu.texture_storage = support; |
| 309 } | 309 } |
| 310 void set_support_texture_usage(bool support) { |
| 311 test_capabilities_.gpu.texture_usage = support; |
| 312 } |
| 310 void set_support_sync_query(bool support) { | 313 void set_support_sync_query(bool support) { |
| 311 test_capabilities_.gpu.sync_query = support; | 314 test_capabilities_.gpu.sync_query = support; |
| 312 } | 315 } |
| 313 | 316 |
| 314 // When this context is lost, all contexts in its share group are also lost. | 317 // When this context is lost, all contexts in its share group are also lost. |
| 315 void add_share_group_context(TestWebGraphicsContext3D* context3d) { | 318 void add_share_group_context(TestWebGraphicsContext3D* context3d) { |
| 316 shared_contexts_.push_back(context3d); | 319 shared_contexts_.push_back(context3d); |
| 317 } | 320 } |
| 318 | 321 |
| 319 void set_max_texture_size(int size) { max_texture_size_ = size; } | 322 void set_max_texture_size(int size) { max_texture_size_ = size; } |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 | 450 |
| 448 scoped_refptr<Namespace> namespace_; | 451 scoped_refptr<Namespace> namespace_; |
| 449 static Namespace* shared_namespace_; | 452 static Namespace* shared_namespace_; |
| 450 | 453 |
| 451 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; | 454 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; |
| 452 }; | 455 }; |
| 453 | 456 |
| 454 } // namespace cc | 457 } // namespace cc |
| 455 | 458 |
| 456 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ | 459 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ |
| OLD | NEW |