Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: cc/test/fake_web_graphics_context_3d.h

Issue 11941010: Fix scrollbars missing after lost context (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/test/fake_scrollbar_layer.cc ('k') | cc/test/fake_web_graphics_context_3d.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « cc/test/fake_scrollbar_layer.cc ('k') | cc/test/fake_web_graphics_context_3d.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698