| 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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 void set_test_support(TestContextSupport* test_support) { | 366 void set_test_support(TestContextSupport* test_support) { |
| 367 test_support_ = test_support; | 367 test_support_ = test_support; |
| 368 } | 368 } |
| 369 | 369 |
| 370 int width() const { return width_; } | 370 int width() const { return width_; } |
| 371 int height() const { return height_; } | 371 int height() const { return height_; } |
| 372 bool reshape_called() const { return reshape_called_; } | 372 bool reshape_called() const { return reshape_called_; } |
| 373 void clear_reshape_called() { reshape_called_ = false; } | 373 void clear_reshape_called() { reshape_called_ = false; } |
| 374 float scale_factor() const { return scale_factor_; } | 374 float scale_factor() const { return scale_factor_; } |
| 375 | 375 |
| 376 enum UpdateType { | 376 enum UpdateType { NO_UPDATE = 0, PREPARE_TEXTURE, POST_SUB_BUFFER }; |
| 377 NoUpdate = 0, | |
| 378 PrepareTexture, | |
| 379 PostSubBuffer | |
| 380 }; | |
| 381 | 377 |
| 382 gfx::Rect update_rect() const { return update_rect_; } | 378 gfx::Rect update_rect() const { return update_rect_; } |
| 383 | 379 |
| 384 UpdateType last_update_type() { return last_update_type_; } | 380 UpdateType last_update_type() { return last_update_type_; } |
| 385 | 381 |
| 386 protected: | 382 protected: |
| 387 struct TextureTargets { | 383 struct TextureTargets { |
| 388 TextureTargets(); | 384 TextureTargets(); |
| 389 ~TextureTargets(); | 385 ~TextureTargets(); |
| 390 | 386 |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 482 | 478 |
| 483 scoped_refptr<Namespace> namespace_; | 479 scoped_refptr<Namespace> namespace_; |
| 484 static Namespace* shared_namespace_; | 480 static Namespace* shared_namespace_; |
| 485 | 481 |
| 486 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; | 482 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; |
| 487 }; | 483 }; |
| 488 | 484 |
| 489 } // namespace cc | 485 } // namespace cc |
| 490 | 486 |
| 491 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ | 487 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ |
| OLD | NEW |