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