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 { NO_UPDATE = 0, PREPARE_TEXTURE, POST_SUB_BUFFER }; | 376 enum UpdateType { |
| 377 NoUpdate = 0, |
| 378 PrepareTexture, |
| 379 PostSubBuffer |
| 380 }; |
377 | 381 |
378 gfx::Rect update_rect() const { return update_rect_; } | 382 gfx::Rect update_rect() const { return update_rect_; } |
379 | 383 |
380 UpdateType last_update_type() { return last_update_type_; } | 384 UpdateType last_update_type() { return last_update_type_; } |
381 | 385 |
382 protected: | 386 protected: |
383 struct TextureTargets { | 387 struct TextureTargets { |
384 TextureTargets(); | 388 TextureTargets(); |
385 ~TextureTargets(); | 389 ~TextureTargets(); |
386 | 390 |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 | 482 |
479 scoped_refptr<Namespace> namespace_; | 483 scoped_refptr<Namespace> namespace_; |
480 static Namespace* shared_namespace_; | 484 static Namespace* shared_namespace_; |
481 | 485 |
482 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; | 486 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; |
483 }; | 487 }; |
484 | 488 |
485 } // namespace cc | 489 } // namespace cc |
486 | 490 |
487 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ | 491 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ |
OLD | NEW |