| 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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 } | 352 } |
| 353 void set_avoid_stencil_buffers(bool avoid_stencil_buffers) { | 353 void set_avoid_stencil_buffers(bool avoid_stencil_buffers) { |
| 354 test_capabilities_.avoid_stencil_buffers = avoid_stencil_buffers; | 354 test_capabilities_.avoid_stencil_buffers = avoid_stencil_buffers; |
| 355 } | 355 } |
| 356 void set_enable_dc_layers(bool support) { | 356 void set_enable_dc_layers(bool support) { |
| 357 test_capabilities_.dc_layers = support; | 357 test_capabilities_.dc_layers = support; |
| 358 } | 358 } |
| 359 void set_support_multisample_compatibility(bool support) { | 359 void set_support_multisample_compatibility(bool support) { |
| 360 test_capabilities_.multisample_compatibility = support; | 360 test_capabilities_.multisample_compatibility = support; |
| 361 } | 361 } |
| 362 void set_support_texture_buffer_chromium(bool support) { | |
| 363 test_capabilities_.texture_buffer_chromium = support; | |
| 364 } | |
| 365 | 362 |
| 366 // When this context is lost, all contexts in its share group are also lost. | 363 // When this context is lost, all contexts in its share group are also lost. |
| 367 void add_share_group_context(TestWebGraphicsContext3D* context3d) { | 364 void add_share_group_context(TestWebGraphicsContext3D* context3d) { |
| 368 shared_contexts_.push_back(context3d); | 365 shared_contexts_.push_back(context3d); |
| 369 } | 366 } |
| 370 | 367 |
| 371 void set_max_texture_size(int size) { max_texture_size_ = size; } | 368 void set_max_texture_size(int size) { max_texture_size_ = size; } |
| 372 | 369 |
| 373 static const GLuint kExternalTextureId; | 370 static const GLuint kExternalTextureId; |
| 374 virtual GLuint NextTextureId(); | 371 virtual GLuint NextTextureId(); |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 | 498 |
| 502 scoped_refptr<Namespace> namespace_; | 499 scoped_refptr<Namespace> namespace_; |
| 503 static Namespace* shared_namespace_; | 500 static Namespace* shared_namespace_; |
| 504 | 501 |
| 505 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; | 502 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; |
| 506 }; | 503 }; |
| 507 | 504 |
| 508 } // namespace cc | 505 } // namespace cc |
| 509 | 506 |
| 510 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ | 507 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ |
| OLD | NEW |