| 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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 } | 320 } |
| 321 void set_support_texture_storage(bool support) { | 321 void set_support_texture_storage(bool support) { |
| 322 test_capabilities_.gpu.texture_storage = support; | 322 test_capabilities_.gpu.texture_storage = support; |
| 323 } | 323 } |
| 324 void set_support_texture_usage(bool support) { | 324 void set_support_texture_usage(bool support) { |
| 325 test_capabilities_.gpu.texture_usage = support; | 325 test_capabilities_.gpu.texture_usage = support; |
| 326 } | 326 } |
| 327 void set_support_sync_query(bool support) { | 327 void set_support_sync_query(bool support) { |
| 328 test_capabilities_.gpu.sync_query = support; | 328 test_capabilities_.gpu.sync_query = support; |
| 329 } | 329 } |
| 330 void set_support_image(bool support) { |
| 331 test_capabilities_.gpu.image = support; |
| 332 } |
| 330 | 333 |
| 331 // When this context is lost, all contexts in its share group are also lost. | 334 // When this context is lost, all contexts in its share group are also lost. |
| 332 void add_share_group_context(TestWebGraphicsContext3D* context3d) { | 335 void add_share_group_context(TestWebGraphicsContext3D* context3d) { |
| 333 shared_contexts_.push_back(context3d); | 336 shared_contexts_.push_back(context3d); |
| 334 } | 337 } |
| 335 | 338 |
| 336 void set_max_texture_size(int size) { max_texture_size_ = size; } | 339 void set_max_texture_size(int size) { max_texture_size_ = size; } |
| 337 | 340 |
| 338 static const GLuint kExternalTextureId; | 341 static const GLuint kExternalTextureId; |
| 339 virtual GLuint NextTextureId(); | 342 virtual GLuint NextTextureId(); |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 | 466 |
| 464 scoped_refptr<Namespace> namespace_; | 467 scoped_refptr<Namespace> namespace_; |
| 465 static Namespace* shared_namespace_; | 468 static Namespace* shared_namespace_; |
| 466 | 469 |
| 467 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; | 470 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; |
| 468 }; | 471 }; |
| 469 | 472 |
| 470 } // namespace cc | 473 } // namespace cc |
| 471 | 474 |
| 472 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ | 475 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ |
| OLD | NEW |