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_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/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 virtual void deleteRenderbuffer(WebKit::WebGLId id); | 82 virtual void deleteRenderbuffer(WebKit::WebGLId id); |
83 virtual void deleteShader(WebKit::WebGLId id); | 83 virtual void deleteShader(WebKit::WebGLId id); |
84 virtual void deleteTexture(WebKit::WebGLId texture_id); | 84 virtual void deleteTexture(WebKit::WebGLId texture_id); |
85 | 85 |
86 virtual void endQueryEXT(WebKit::WGC3Denum target); | 86 virtual void endQueryEXT(WebKit::WGC3Denum target); |
87 virtual void getQueryObjectuivEXT( | 87 virtual void getQueryObjectuivEXT( |
88 WebKit::WebGLId query, | 88 WebKit::WebGLId query, |
89 WebKit::WGC3Denum pname, | 89 WebKit::WGC3Denum pname, |
90 WebKit::WGC3Duint* params); | 90 WebKit::WGC3Duint* params); |
91 | 91 |
| 92 virtual void genMailboxCHROMIUM(WebKit::WGC3Dbyte* mailbox); |
| 93 virtual void produceTextureCHROMIUM(WebKit::WGC3Denum target, |
| 94 const WebKit::WGC3Dbyte* mailbox) { } |
| 95 virtual void consumeTextureCHROMIUM(WebKit::WGC3Denum target, |
| 96 const WebKit::WGC3Dbyte* mailbox) { } |
| 97 |
92 virtual void setContextLostCallback( | 98 virtual void setContextLostCallback( |
93 WebGraphicsContextLostCallback* callback); | 99 WebGraphicsContextLostCallback* callback); |
94 | 100 |
95 virtual void loseContextCHROMIUM(WebKit::WGC3Denum current, | 101 virtual void loseContextCHROMIUM(WebKit::WGC3Denum current, |
96 WebKit::WGC3Denum other); | 102 WebKit::WGC3Denum other); |
97 | 103 |
98 // When set, MakeCurrent() will fail after this many times. | 104 // When set, MakeCurrent() will fail after this many times. |
99 void set_times_make_current_succeeds(int times) { | 105 void set_times_make_current_succeeds(int times) { |
100 times_make_current_succeeds_ = times; | 106 times_make_current_succeeds_ = times; |
101 } | 107 } |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 std::vector<WebKit::WebGLId> textures_; | 154 std::vector<WebKit::WebGLId> textures_; |
149 base::hash_set<WebKit::WebGLId> used_textures_; | 155 base::hash_set<WebKit::WebGLId> used_textures_; |
150 std::vector<WebKit::WebGraphicsContext3D*> shared_contexts_; | 156 std::vector<WebKit::WebGraphicsContext3D*> shared_contexts_; |
151 int width_; | 157 int width_; |
152 int height_; | 158 int height_; |
153 }; | 159 }; |
154 | 160 |
155 } // namespace cc | 161 } // namespace cc |
156 | 162 |
157 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ | 163 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ |
OLD | NEW |