| 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 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 friend class base::RefCountedThreadSafe<Namespace>; | 430 friend class base::RefCountedThreadSafe<Namespace>; |
| 431 ~Namespace(); | 431 ~Namespace(); |
| 432 DISALLOW_COPY_AND_ASSIGN(Namespace); | 432 DISALLOW_COPY_AND_ASSIGN(Namespace); |
| 433 }; | 433 }; |
| 434 | 434 |
| 435 TestWebGraphicsContext3D(); | 435 TestWebGraphicsContext3D(); |
| 436 | 436 |
| 437 void CreateNamespace(); | 437 void CreateNamespace(); |
| 438 GLuint BoundTextureId(GLenum target); | 438 GLuint BoundTextureId(GLenum target); |
| 439 scoped_refptr<TestTexture> BoundTexture(GLenum target); | 439 scoped_refptr<TestTexture> BoundTexture(GLenum target); |
| 440 scoped_refptr<TestTexture> UnboundTexture(GLuint texture); |
| 440 void CheckTextureIsBound(GLenum target); | 441 void CheckTextureIsBound(GLenum target); |
| 441 | 442 |
| 442 unsigned context_id_; | 443 unsigned context_id_; |
| 443 ContextProvider::Capabilities test_capabilities_; | 444 ContextProvider::Capabilities test_capabilities_; |
| 444 int times_bind_texture_succeeds_; | 445 int times_bind_texture_succeeds_; |
| 445 int times_end_query_succeeds_; | 446 int times_end_query_succeeds_; |
| 446 bool context_lost_; | 447 bool context_lost_; |
| 447 int times_map_buffer_chromium_succeeds_; | 448 int times_map_buffer_chromium_succeeds_; |
| 448 int current_used_transfer_buffer_usage_bytes_; | 449 int current_used_transfer_buffer_usage_bytes_; |
| 449 int max_used_transfer_buffer_usage_bytes_; | 450 int max_used_transfer_buffer_usage_bytes_; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 471 | 472 |
| 472 scoped_refptr<Namespace> namespace_; | 473 scoped_refptr<Namespace> namespace_; |
| 473 static Namespace* shared_namespace_; | 474 static Namespace* shared_namespace_; |
| 474 | 475 |
| 475 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; | 476 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; |
| 476 }; | 477 }; |
| 477 | 478 |
| 478 } // namespace cc | 479 } // namespace cc |
| 479 | 480 |
| 480 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ | 481 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ |
| OLD | NEW |