OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_FAKE_WEB_GRAPHICS_CONTEXT_3D_H_ | 5 #ifndef CC_TEST_FAKE_WEB_GRAPHICS_CONTEXT_3D_H_ |
6 #define CC_TEST_FAKE_WEB_GRAPHICS_CONTEXT_3D_H_ | 6 #define CC_TEST_FAKE_WEB_GRAPHICS_CONTEXT_3D_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/hash_tables.h" | 10 #include "base/hash_tables.h" |
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
582 WebKit::WGC3Denum pname, | 582 WebKit::WGC3Denum pname, |
583 WebKit::WGC3Dint* params) {} | 583 WebKit::WGC3Dint* params) {} |
584 virtual void getQueryObjectuivEXT( | 584 virtual void getQueryObjectuivEXT( |
585 WebKit::WebGLId query, | 585 WebKit::WebGLId query, |
586 WebKit::WGC3Denum pname, | 586 WebKit::WGC3Denum pname, |
587 WebKit::WGC3Duint* params); | 587 WebKit::WGC3Duint* params); |
588 | 588 |
589 virtual void setContextLostCallback( | 589 virtual void setContextLostCallback( |
590 WebGraphicsContextLostCallback* callback); | 590 WebGraphicsContextLostCallback* callback); |
591 | 591 |
592 virtual void loseContextCHROMIUM(); | 592 virtual void loseContextCHROMIUM(WebKit::WGC3Denum current, |
| 593 WebKit::WGC3Denum other); |
593 | 594 |
594 // When set, MakeCurrent() will fail after this many times. | 595 // When set, MakeCurrent() will fail after this many times. |
595 void set_times_make_current_succeeds(int times) { | 596 void set_times_make_current_succeeds(int times) { |
596 times_make_current_succeeds_ = times; | 597 times_make_current_succeeds_ = times; |
597 } | 598 } |
598 void set_times_bind_texture_succeeds(int times) { | 599 void set_times_bind_texture_succeeds(int times) { |
599 times_bind_texture_succeeds_ = times; | 600 times_bind_texture_succeeds_ = times; |
600 } | 601 } |
601 void set_times_end_query_succeeds(int times) { | 602 void set_times_end_query_succeeds(int times) { |
602 times_end_query_succeeds_ = times; | 603 times_end_query_succeeds_ = times; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
638 WebGraphicsContextLostCallback* context_lost_callback_; | 639 WebGraphicsContextLostCallback* context_lost_callback_; |
639 std::vector<WebKit::WebGLId> textures_; | 640 std::vector<WebKit::WebGLId> textures_; |
640 base::hash_set<WebKit::WebGLId> used_textures_; | 641 base::hash_set<WebKit::WebGLId> used_textures_; |
641 int width_; | 642 int width_; |
642 int height_; | 643 int height_; |
643 }; | 644 }; |
644 | 645 |
645 } // namespace cc | 646 } // namespace cc |
646 | 647 |
647 #endif // CC_TEST_FAKE_WEB_GRAPHICS_CONTEXT_3D_H_ | 648 #endif // CC_TEST_FAKE_WEB_GRAPHICS_CONTEXT_3D_H_ |
OLD | NEW |