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/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 static scoped_ptr<TestWebGraphicsContext3D> Create(); | 30 static scoped_ptr<TestWebGraphicsContext3D> Create(); |
31 | 31 |
32 virtual ~TestWebGraphicsContext3D(); | 32 virtual ~TestWebGraphicsContext3D(); |
33 | 33 |
34 virtual void reshapeWithScaleFactor(int width, | 34 virtual void reshapeWithScaleFactor(int width, |
35 int height, | 35 int height, |
36 float scale_factor); | 36 float scale_factor); |
37 | 37 |
38 virtual bool isContextLost() OVERRIDE; | 38 virtual bool isContextLost() OVERRIDE; |
39 | 39 |
40 virtual void attachShader(blink::WebGLId program, | 40 virtual void attachShader(GLuint program, GLuint shader) OVERRIDE; |
41 blink::WebGLId shader) OVERRIDE; | 41 virtual void bindFramebuffer( |
42 virtual void bindFramebuffer(blink::WGC3Denum target, | 42 GLenum target, GLuint framebuffer) OVERRIDE; |
43 blink::WebGLId framebuffer) OVERRIDE; | 43 virtual void bindRenderbuffer( |
44 virtual void bindRenderbuffer(blink::WGC3Denum target, | 44 GLenum target, GLuint renderbuffer) OVERRIDE; |
45 blink::WebGLId renderbuffer) OVERRIDE; | 45 virtual void bindTexture( |
46 virtual void bindTexture(blink::WGC3Denum target, | 46 GLenum target, |
47 blink::WebGLId texture_id) OVERRIDE; | 47 GLuint texture_id) OVERRIDE; |
48 | 48 |
49 virtual void texParameteri(blink::WGC3Denum target, | 49 virtual void texParameteri(GLenum target, |
50 blink::WGC3Denum pname, | 50 GLenum pname, |
51 blink::WGC3Dint param) OVERRIDE; | 51 GLint param) OVERRIDE; |
52 virtual void getTexParameteriv(blink::WGC3Denum target, | 52 virtual void getTexParameteriv(GLenum target, |
53 blink::WGC3Denum pname, | 53 GLenum pname, |
54 blink::WGC3Dint* value) OVERRIDE; | 54 GLint* value) OVERRIDE; |
55 virtual void asyncTexImage2DCHROMIUM(GLenum target, | 55 virtual void asyncTexImage2DCHROMIUM(GLenum target, |
56 GLint level, | 56 GLint level, |
57 GLenum internalformat, | 57 GLenum internalformat, |
58 GLsizei width, | 58 GLsizei width, |
59 GLsizei height, | 59 GLsizei height, |
60 GLint border, | 60 GLint border, |
61 GLenum format, | 61 GLenum format, |
62 GLenum type, | 62 GLenum type, |
63 const void* pixels) {} | 63 const void* pixels) {} |
64 virtual void asyncTexSubImage2DCHROMIUM(GLenum target, | 64 virtual void asyncTexSubImage2DCHROMIUM(GLenum target, |
65 GLint level, | 65 GLint level, |
66 GLint xoffset, | 66 GLint xoffset, |
67 GLint yoffset, | 67 GLint yoffset, |
68 GLsizei width, | 68 GLsizei width, |
69 GLsizei height, | 69 GLsizei height, |
70 GLenum format, | 70 GLenum format, |
71 GLenum type, | 71 GLenum type, |
72 const void* pixels) {} | 72 const void* pixels) {} |
73 virtual void waitAsyncTexImage2DCHROMIUM(GLenum target) {} | 73 virtual void waitAsyncTexImage2DCHROMIUM(GLenum target) {} |
74 virtual void releaseTexImage2DCHROMIUM(GLenum target, GLint image_id) {} | 74 virtual void releaseTexImage2DCHROMIUM(GLenum target, GLint image_id) {} |
75 | 75 |
76 virtual blink::WGC3Denum checkFramebufferStatus(blink::WGC3Denum target) | 76 virtual GLenum checkFramebufferStatus(GLenum target) OVERRIDE; |
77 OVERRIDE; | |
78 | 77 |
79 virtual blink::WebString getString(blink::WGC3Denum name) OVERRIDE; | 78 virtual blink::WebString getString(GLenum name) OVERRIDE; |
80 virtual blink::WGC3Dint getUniformLocation(blink::WebGLId program, | 79 virtual GLint getUniformLocation( |
81 const blink::WGC3Dchar* name) | 80 GLuint program, |
82 OVERRIDE; | 81 const GLchar* name) OVERRIDE; |
83 virtual blink::WGC3Dsizeiptr getVertexAttribOffset(blink::WGC3Duint index, | 82 virtual GLsizeiptr getVertexAttribOffset( |
84 blink::WGC3Denum pname) | 83 GLuint index, |
85 OVERRIDE; | 84 GLenum pname) OVERRIDE; |
86 | 85 |
87 virtual blink::WGC3Dboolean isBuffer(blink::WebGLId buffer) OVERRIDE; | 86 virtual GLboolean isBuffer(GLuint buffer) OVERRIDE; |
88 virtual blink::WGC3Dboolean isEnabled(blink::WGC3Denum cap) OVERRIDE; | 87 virtual GLboolean isEnabled(GLenum cap) OVERRIDE; |
89 virtual blink::WGC3Dboolean isFramebuffer(blink::WebGLId framebuffer) | 88 virtual GLboolean isFramebuffer(GLuint framebuffer) OVERRIDE; |
90 OVERRIDE; | 89 virtual GLboolean isProgram(GLuint program) OVERRIDE; |
91 virtual blink::WGC3Dboolean isProgram(blink::WebGLId program) OVERRIDE; | 90 virtual GLboolean isRenderbuffer(GLuint renderbuffer) OVERRIDE; |
92 virtual blink::WGC3Dboolean isRenderbuffer(blink::WebGLId renderbuffer) | 91 virtual GLboolean isShader(GLuint shader) OVERRIDE; |
93 OVERRIDE; | 92 virtual GLboolean isTexture(GLuint texture) OVERRIDE; |
94 virtual blink::WGC3Dboolean isShader(blink::WebGLId shader) OVERRIDE; | |
95 virtual blink::WGC3Dboolean isTexture(blink::WebGLId texture) OVERRIDE; | |
96 | 93 |
97 virtual void useProgram(blink::WebGLId program) OVERRIDE; | 94 virtual void useProgram(GLuint program) OVERRIDE; |
98 | 95 |
99 virtual void genBuffers(blink::WGC3Dsizei count, | 96 virtual void genBuffers(GLsizei count, GLuint* ids) OVERRIDE; |
100 blink::WebGLId* ids) OVERRIDE; | 97 virtual void genFramebuffers(GLsizei count, GLuint* ids) OVERRIDE; |
101 virtual void genFramebuffers(blink::WGC3Dsizei count, | 98 virtual void genRenderbuffers(GLsizei count, GLuint* ids) OVERRIDE; |
102 blink::WebGLId* ids) OVERRIDE; | 99 virtual void genTextures(GLsizei count, GLuint* ids) OVERRIDE; |
103 virtual void genRenderbuffers(blink::WGC3Dsizei count, | |
104 blink::WebGLId* ids) OVERRIDE; | |
105 virtual void genTextures(blink::WGC3Dsizei count, | |
106 blink::WebGLId* ids) OVERRIDE; | |
107 | 100 |
108 virtual void deleteBuffers(blink::WGC3Dsizei count, | 101 virtual void deleteBuffers(GLsizei count, GLuint* ids) OVERRIDE; |
109 blink::WebGLId* ids) OVERRIDE; | 102 virtual void deleteFramebuffers( |
110 virtual void deleteFramebuffers(blink::WGC3Dsizei count, | 103 GLsizei count, GLuint* ids) OVERRIDE; |
111 blink::WebGLId* ids) OVERRIDE; | 104 virtual void deleteRenderbuffers( |
112 virtual void deleteRenderbuffers(blink::WGC3Dsizei count, | 105 GLsizei count, GLuint* ids) OVERRIDE; |
113 blink::WebGLId* ids) OVERRIDE; | 106 virtual void deleteTextures(GLsizei count, GLuint* ids) OVERRIDE; |
114 virtual void deleteTextures(blink::WGC3Dsizei count, | |
115 blink::WebGLId* ids) OVERRIDE; | |
116 | 107 |
117 virtual blink::WebGLId createBuffer() OVERRIDE; | 108 virtual GLuint createBuffer() OVERRIDE; |
118 virtual blink::WebGLId createFramebuffer() OVERRIDE; | 109 virtual GLuint createFramebuffer() OVERRIDE; |
119 virtual blink::WebGLId createRenderbuffer() OVERRIDE; | 110 virtual GLuint createRenderbuffer() OVERRIDE; |
120 virtual blink::WebGLId createTexture() OVERRIDE; | 111 virtual GLuint createTexture() OVERRIDE; |
121 | 112 |
122 virtual void deleteBuffer(blink::WebGLId id) OVERRIDE; | 113 virtual void deleteBuffer(GLuint id) OVERRIDE; |
123 virtual void deleteFramebuffer(blink::WebGLId id) OVERRIDE; | 114 virtual void deleteFramebuffer(GLuint id) OVERRIDE; |
124 virtual void deleteRenderbuffer(blink::WebGLId id) OVERRIDE; | 115 virtual void deleteRenderbuffer(GLuint id) OVERRIDE; |
125 virtual void deleteTexture(blink::WebGLId id) OVERRIDE; | 116 virtual void deleteTexture(GLuint id) OVERRIDE; |
126 | 117 |
127 virtual blink::WebGLId createProgram() OVERRIDE; | 118 virtual GLuint createProgram() OVERRIDE; |
128 virtual blink::WebGLId createShader(blink::WGC3Denum) OVERRIDE; | 119 virtual GLuint createShader(GLenum) OVERRIDE; |
129 virtual blink::WebGLId createExternalTexture(); | 120 virtual GLuint createExternalTexture(); |
130 | 121 |
131 virtual void deleteProgram(blink::WebGLId id) OVERRIDE; | 122 virtual void deleteProgram(GLuint id) OVERRIDE; |
132 virtual void deleteShader(blink::WebGLId id) OVERRIDE; | 123 virtual void deleteShader(GLuint id) OVERRIDE; |
133 | 124 |
134 virtual void endQueryEXT(blink::WGC3Denum target) OVERRIDE; | 125 virtual void endQueryEXT(GLenum target) OVERRIDE; |
135 virtual void getQueryObjectuivEXT(blink::WebGLId query, | 126 virtual void getQueryObjectuivEXT( |
136 blink::WGC3Denum pname, | 127 GLuint query, |
137 blink::WGC3Duint* params) OVERRIDE; | 128 GLenum pname, |
| 129 GLuint* params) OVERRIDE; |
138 | 130 |
139 virtual void getIntegerv(blink::WGC3Denum pname, | 131 virtual void getIntegerv( |
140 blink::WGC3Dint* value) OVERRIDE; | 132 GLenum pname, |
| 133 GLint* value) OVERRIDE; |
141 | 134 |
142 virtual void genMailboxCHROMIUM(blink::WGC3Dbyte* mailbox); | 135 virtual void genMailboxCHROMIUM(GLbyte* mailbox); |
143 virtual void produceTextureCHROMIUM(blink::WGC3Denum target, | 136 virtual void produceTextureCHROMIUM(GLenum target, |
144 const blink::WGC3Dbyte* mailbox) {} | 137 const GLbyte* mailbox) { } |
145 virtual void consumeTextureCHROMIUM(blink::WGC3Denum target, | 138 virtual void consumeTextureCHROMIUM(GLenum target, |
146 const blink::WGC3Dbyte* mailbox) {} | 139 const GLbyte* mailbox) { } |
147 | 140 |
148 virtual void setContextLostCallback( | 141 virtual void setContextLostCallback( |
149 blink::WebGraphicsContext3D::WebGraphicsContextLostCallback* callback) | 142 blink::WebGraphicsContext3D::WebGraphicsContextLostCallback* callback) |
150 OVERRIDE; | 143 OVERRIDE; |
151 | 144 |
152 virtual void loseContextCHROMIUM(blink::WGC3Denum current, | 145 virtual void loseContextCHROMIUM(GLenum current, |
153 blink::WGC3Denum other) OVERRIDE; | 146 GLenum other) OVERRIDE; |
154 | 147 |
155 virtual void finish() OVERRIDE; | 148 virtual void finish() OVERRIDE; |
156 virtual void flush() OVERRIDE; | 149 virtual void flush() OVERRIDE; |
157 | 150 |
158 virtual void bindBuffer(blink::WGC3Denum target, | 151 virtual void bindBuffer(GLenum target, GLuint buffer) OVERRIDE; |
159 blink::WebGLId buffer) OVERRIDE; | 152 virtual void bufferData(GLenum target, |
160 virtual void bufferData(blink::WGC3Denum target, | 153 GLsizeiptr size, |
161 blink::WGC3Dsizeiptr size, | |
162 const void* data, | 154 const void* data, |
163 blink::WGC3Denum usage) OVERRIDE; | 155 GLenum usage) OVERRIDE; |
164 virtual void* mapBufferCHROMIUM(blink::WGC3Denum target, | 156 virtual void* mapBufferCHROMIUM(GLenum target, |
165 blink::WGC3Denum access); | 157 GLenum access); |
166 virtual blink::WGC3Dboolean unmapBufferCHROMIUM(blink::WGC3Denum target); | 158 virtual GLboolean unmapBufferCHROMIUM(GLenum target); |
167 | 159 |
168 virtual blink::WGC3Duint createImageCHROMIUM(blink::WGC3Dsizei width, | 160 virtual GLuint createImageCHROMIUM( |
169 blink::WGC3Dsizei height, | 161 GLsizei width, |
170 blink::WGC3Denum internalformat) | 162 GLsizei height, |
171 OVERRIDE; | 163 GLenum internalformat) OVERRIDE; |
172 virtual void destroyImageCHROMIUM(blink::WGC3Duint image_id) OVERRIDE; | 164 virtual void destroyImageCHROMIUM(GLuint image_id) OVERRIDE; |
173 virtual void getImageParameterivCHROMIUM(blink::WGC3Duint image_id, | 165 virtual void getImageParameterivCHROMIUM( |
174 blink::WGC3Denum pname, | 166 GLuint image_id, |
175 blink::WGC3Dint* params) OVERRIDE; | 167 GLenum pname, |
176 virtual void* mapImageCHROMIUM(blink::WGC3Duint image_id, | 168 GLint* params) OVERRIDE; |
177 blink::WGC3Denum access) OVERRIDE; | 169 virtual void* mapImageCHROMIUM( |
178 virtual void unmapImageCHROMIUM(blink::WGC3Duint image_id) OVERRIDE; | 170 GLuint image_id, |
| 171 GLenum access) OVERRIDE; |
| 172 virtual void unmapImageCHROMIUM(GLuint image_id) OVERRIDE; |
179 virtual void texImageIOSurface2DCHROMIUM(GLenum target, | 173 virtual void texImageIOSurface2DCHROMIUM(GLenum target, |
180 GLsizei width, | 174 GLsizei width, |
181 GLsizei height, | 175 GLsizei height, |
182 GLuint io_surface_id, | 176 GLuint io_surface_id, |
183 GLuint plane) {} | 177 GLuint plane) {} |
184 | 178 |
185 virtual unsigned insertSyncPoint(); | 179 virtual unsigned insertSyncPoint(); |
186 virtual void waitSyncPoint(unsigned sync_point); | 180 virtual void waitSyncPoint(unsigned sync_point); |
187 | 181 |
188 unsigned last_waited_sync_point() const { return last_waited_sync_point_; } | 182 unsigned last_waited_sync_point() const { return last_waited_sync_point_; } |
(...skipping 16 matching lines...) Expand all Loading... |
205 // When set, mapImageCHROMIUM and mapBufferCHROMIUM will return NULL after | 199 // When set, mapImageCHROMIUM and mapBufferCHROMIUM will return NULL after |
206 // this many times. | 200 // this many times. |
207 void set_times_map_image_chromium_succeeds(int times) { | 201 void set_times_map_image_chromium_succeeds(int times) { |
208 times_map_image_chromium_succeeds_ = times; | 202 times_map_image_chromium_succeeds_ = times; |
209 } | 203 } |
210 void set_times_map_buffer_chromium_succeeds(int times) { | 204 void set_times_map_buffer_chromium_succeeds(int times) { |
211 times_map_buffer_chromium_succeeds_ = times; | 205 times_map_buffer_chromium_succeeds_ = times; |
212 } | 206 } |
213 | 207 |
214 size_t NumTextures() const; | 208 size_t NumTextures() const; |
215 blink::WebGLId TextureAt(int i) const; | 209 GLuint TextureAt(int i) const; |
216 | 210 |
217 size_t NumUsedTextures() const { return used_textures_.size(); } | 211 size_t NumUsedTextures() const { return used_textures_.size(); } |
218 bool UsedTexture(int texture) const { | 212 bool UsedTexture(int texture) const { |
219 return ContainsKey(used_textures_, texture); | 213 return ContainsKey(used_textures_, texture); |
220 } | 214 } |
221 void ResetUsedTextures() { used_textures_.clear(); } | 215 void ResetUsedTextures() { used_textures_.clear(); } |
222 | 216 |
223 void set_have_extension_io_surface(bool have) { | 217 void set_have_extension_io_surface(bool have) { |
224 test_capabilities_.iosurface = have; | 218 test_capabilities_.iosurface = have; |
225 test_capabilities_.texture_rectangle = have; | 219 test_capabilities_.texture_rectangle = have; |
(...skipping 14 matching lines...) Expand all Loading... |
240 test_capabilities_.texture_storage = support; | 234 test_capabilities_.texture_storage = support; |
241 } | 235 } |
242 | 236 |
243 // When this context is lost, all contexts in its share group are also lost. | 237 // When this context is lost, all contexts in its share group are also lost. |
244 void add_share_group_context(TestWebGraphicsContext3D* context3d) { | 238 void add_share_group_context(TestWebGraphicsContext3D* context3d) { |
245 shared_contexts_.push_back(context3d); | 239 shared_contexts_.push_back(context3d); |
246 } | 240 } |
247 | 241 |
248 void set_max_texture_size(int size) { max_texture_size_ = size; } | 242 void set_max_texture_size(int size) { max_texture_size_ = size; } |
249 | 243 |
250 static const blink::WebGLId kExternalTextureId; | 244 static const GLuint kExternalTextureId; |
251 virtual blink::WebGLId NextTextureId(); | 245 virtual GLuint NextTextureId(); |
252 virtual void RetireTextureId(blink::WebGLId id); | 246 virtual void RetireTextureId(GLuint id); |
253 | 247 |
254 virtual blink::WebGLId NextBufferId(); | 248 virtual GLuint NextBufferId(); |
255 virtual void RetireBufferId(blink::WebGLId id); | 249 virtual void RetireBufferId(GLuint id); |
256 | 250 |
257 virtual blink::WebGLId NextImageId(); | 251 virtual GLuint NextImageId(); |
258 virtual void RetireImageId(blink::WebGLId id); | 252 virtual void RetireImageId(GLuint id); |
259 | 253 |
260 size_t GetTransferBufferMemoryUsedBytes() const; | 254 size_t GetTransferBufferMemoryUsedBytes() const; |
261 void SetMaxTransferBufferUsageBytes(size_t max_transfer_buffer_usage_bytes); | 255 void SetMaxTransferBufferUsageBytes(size_t max_transfer_buffer_usage_bytes); |
262 size_t GetPeakTransferBufferMemoryUsedBytes() const { | 256 size_t GetPeakTransferBufferMemoryUsedBytes() const { |
263 return peak_transfer_buffer_memory_used_bytes_; | 257 return peak_transfer_buffer_memory_used_bytes_; |
264 } | 258 } |
265 | 259 |
266 void set_test_support(TestContextSupport* test_support) { | 260 void set_test_support(TestContextSupport* test_support) { |
267 test_support_ = test_support; | 261 test_support_ = test_support; |
268 } | 262 } |
(...skipping 12 matching lines...) Expand all Loading... |
281 | 275 |
282 gfx::Rect update_rect() const { return update_rect_; } | 276 gfx::Rect update_rect() const { return update_rect_; } |
283 | 277 |
284 UpdateType last_update_type() { return last_update_type_; } | 278 UpdateType last_update_type() { return last_update_type_; } |
285 | 279 |
286 protected: | 280 protected: |
287 struct TextureTargets { | 281 struct TextureTargets { |
288 TextureTargets(); | 282 TextureTargets(); |
289 ~TextureTargets(); | 283 ~TextureTargets(); |
290 | 284 |
291 void BindTexture(blink::WGC3Denum target, blink::WebGLId id); | 285 void BindTexture(GLenum target, GLuint id); |
292 void UnbindTexture(blink::WebGLId id); | 286 void UnbindTexture(GLuint id); |
293 | 287 |
294 blink::WebGLId BoundTexture(blink::WGC3Denum target); | 288 GLuint BoundTexture(GLenum target); |
295 | 289 |
296 private: | 290 private: |
297 typedef base::hash_map<blink::WGC3Denum, blink::WebGLId> TargetTextureMap; | 291 typedef base::hash_map<GLenum, GLuint> TargetTextureMap; |
298 TargetTextureMap bound_textures_; | 292 TargetTextureMap bound_textures_; |
299 }; | 293 }; |
300 | 294 |
301 struct Buffer { | 295 struct Buffer { |
302 Buffer(); | 296 Buffer(); |
303 ~Buffer(); | 297 ~Buffer(); |
304 | 298 |
305 blink::WGC3Denum target; | 299 GLenum target; |
306 scoped_ptr<uint8[]> pixels; | 300 scoped_ptr<uint8[]> pixels; |
307 size_t size; | 301 size_t size; |
308 | 302 |
309 private: | 303 private: |
310 DISALLOW_COPY_AND_ASSIGN(Buffer); | 304 DISALLOW_COPY_AND_ASSIGN(Buffer); |
311 }; | 305 }; |
312 | 306 |
313 struct Image { | 307 struct Image { |
314 Image(); | 308 Image(); |
315 ~Image(); | 309 ~Image(); |
(...skipping 18 matching lines...) Expand all Loading... |
334 | 328 |
335 private: | 329 private: |
336 friend class base::RefCountedThreadSafe<Namespace>; | 330 friend class base::RefCountedThreadSafe<Namespace>; |
337 ~Namespace(); | 331 ~Namespace(); |
338 DISALLOW_COPY_AND_ASSIGN(Namespace); | 332 DISALLOW_COPY_AND_ASSIGN(Namespace); |
339 }; | 333 }; |
340 | 334 |
341 TestWebGraphicsContext3D(); | 335 TestWebGraphicsContext3D(); |
342 | 336 |
343 void CreateNamespace(); | 337 void CreateNamespace(); |
344 blink::WebGLId BoundTextureId(blink::WGC3Denum target); | 338 GLuint BoundTextureId(GLenum target); |
345 scoped_refptr<TestTexture> BoundTexture(blink::WGC3Denum target); | 339 scoped_refptr<TestTexture> BoundTexture(GLenum target); |
346 void CheckTextureIsBound(blink::WGC3Denum target); | 340 void CheckTextureIsBound(GLenum target); |
347 | 341 |
348 unsigned context_id_; | 342 unsigned context_id_; |
349 ContextProvider::Capabilities test_capabilities_; | 343 ContextProvider::Capabilities test_capabilities_; |
350 int times_bind_texture_succeeds_; | 344 int times_bind_texture_succeeds_; |
351 int times_end_query_succeeds_; | 345 int times_end_query_succeeds_; |
352 int times_gen_mailbox_succeeds_; | 346 int times_gen_mailbox_succeeds_; |
353 bool context_lost_; | 347 bool context_lost_; |
354 int times_map_image_chromium_succeeds_; | 348 int times_map_image_chromium_succeeds_; |
355 int times_map_buffer_chromium_succeeds_; | 349 int times_map_buffer_chromium_succeeds_; |
356 blink::WebGraphicsContext3D::WebGraphicsContextLostCallback* | 350 blink::WebGraphicsContext3D::WebGraphicsContextLostCallback* |
(...skipping 22 matching lines...) Expand all Loading... |
379 | 373 |
380 scoped_refptr<Namespace> namespace_; | 374 scoped_refptr<Namespace> namespace_; |
381 static Namespace* shared_namespace_; | 375 static Namespace* shared_namespace_; |
382 | 376 |
383 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; | 377 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; |
384 }; | 378 }; |
385 | 379 |
386 } // namespace cc | 380 } // namespace cc |
387 | 381 |
388 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ | 382 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ |
OLD | NEW |