| 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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 | 352 |
| 353 virtual GLuint NextImageId(); | 353 virtual GLuint NextImageId(); |
| 354 virtual void RetireImageId(GLuint id); | 354 virtual void RetireImageId(GLuint id); |
| 355 | 355 |
| 356 virtual GLuint NextFramebufferId(); | 356 virtual GLuint NextFramebufferId(); |
| 357 virtual void RetireFramebufferId(GLuint id); | 357 virtual void RetireFramebufferId(GLuint id); |
| 358 | 358 |
| 359 virtual GLuint NextRenderbufferId(); | 359 virtual GLuint NextRenderbufferId(); |
| 360 virtual void RetireRenderbufferId(GLuint id); | 360 virtual void RetireRenderbufferId(GLuint id); |
| 361 | 361 |
| 362 void SetMaxTransferBufferUsageBytes(size_t max_transfer_buffer_usage_bytes); | |
| 363 size_t max_used_transfer_buffer_usage_bytes() const { | |
| 364 return max_used_transfer_buffer_usage_bytes_; | |
| 365 } | |
| 366 | |
| 367 void SetMaxSamples(int max_samples); | 362 void SetMaxSamples(int max_samples); |
| 368 void set_test_support(TestContextSupport* test_support) { | 363 void set_test_support(TestContextSupport* test_support) { |
| 369 test_support_ = test_support; | 364 test_support_ = test_support; |
| 370 } | 365 } |
| 371 | 366 |
| 372 int width() const { return width_; } | 367 int width() const { return width_; } |
| 373 int height() const { return height_; } | 368 int height() const { return height_; } |
| 374 bool reshape_called() const { return reshape_called_; } | 369 bool reshape_called() const { return reshape_called_; } |
| 375 void clear_reshape_called() { reshape_called_ = false; } | 370 void clear_reshape_called() { reshape_called_ = false; } |
| 376 float scale_factor() const { return scale_factor_; } | 371 float scale_factor() const { return scale_factor_; } |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 | 476 |
| 482 scoped_refptr<Namespace> namespace_; | 477 scoped_refptr<Namespace> namespace_; |
| 483 static Namespace* shared_namespace_; | 478 static Namespace* shared_namespace_; |
| 484 | 479 |
| 485 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; | 480 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; |
| 486 }; | 481 }; |
| 487 | 482 |
| 488 } // namespace cc | 483 } // namespace cc |
| 489 | 484 |
| 490 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ | 485 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ |
| OLD | NEW |