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 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 friend class base::RefCountedThreadSafe<Namespace>; | 438 friend class base::RefCountedThreadSafe<Namespace>; |
439 ~Namespace(); | 439 ~Namespace(); |
440 DISALLOW_COPY_AND_ASSIGN(Namespace); | 440 DISALLOW_COPY_AND_ASSIGN(Namespace); |
441 }; | 441 }; |
442 | 442 |
443 TestWebGraphicsContext3D(); | 443 TestWebGraphicsContext3D(); |
444 | 444 |
445 void CreateNamespace(); | 445 void CreateNamespace(); |
446 GLuint BoundTextureId(GLenum target); | 446 GLuint BoundTextureId(GLenum target); |
447 scoped_refptr<TestTexture> BoundTexture(GLenum target); | 447 scoped_refptr<TestTexture> BoundTexture(GLenum target); |
| 448 scoped_refptr<TestTexture> UnboundTexture(GLuint texture); |
448 void CheckTextureIsBound(GLenum target); | 449 void CheckTextureIsBound(GLenum target); |
449 | 450 |
450 unsigned context_id_; | 451 unsigned context_id_; |
451 ContextProvider::Capabilities test_capabilities_; | 452 ContextProvider::Capabilities test_capabilities_; |
452 int times_bind_texture_succeeds_; | 453 int times_bind_texture_succeeds_; |
453 int times_end_query_succeeds_; | 454 int times_end_query_succeeds_; |
454 bool context_lost_; | 455 bool context_lost_; |
455 int times_map_buffer_chromium_succeeds_; | 456 int times_map_buffer_chromium_succeeds_; |
456 int current_used_transfer_buffer_usage_bytes_; | 457 int current_used_transfer_buffer_usage_bytes_; |
457 int max_used_transfer_buffer_usage_bytes_; | 458 int max_used_transfer_buffer_usage_bytes_; |
(...skipping 24 matching lines...) Expand all Loading... |
482 | 483 |
483 scoped_refptr<Namespace> namespace_; | 484 scoped_refptr<Namespace> namespace_; |
484 static Namespace* shared_namespace_; | 485 static Namespace* shared_namespace_; |
485 | 486 |
486 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; | 487 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; |
487 }; | 488 }; |
488 | 489 |
489 } // namespace cc | 490 } // namespace cc |
490 | 491 |
491 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ | 492 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ |
OLD | NEW |