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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 GLsizei width, | 263 GLsizei width, |
264 GLsizei height, | 264 GLsizei height, |
265 GLenum internalformat); | 265 GLenum internalformat); |
266 virtual void destroyImageCHROMIUM(GLuint image_id); | 266 virtual void destroyImageCHROMIUM(GLuint image_id); |
267 virtual GLuint createGpuMemoryBufferImageCHROMIUM(GLsizei width, | 267 virtual GLuint createGpuMemoryBufferImageCHROMIUM(GLsizei width, |
268 GLsizei height, | 268 GLsizei height, |
269 GLenum internalformat, | 269 GLenum internalformat, |
270 GLenum usage); | 270 GLenum usage); |
271 virtual void getImageivCHROMIUM(GLuint image_id, GLenum param, GLint* data); | 271 virtual void getImageivCHROMIUM(GLuint image_id, GLenum param, GLint* data); |
272 | 272 |
273 virtual void texImageIOSurface2DCHROMIUM(GLenum target, | |
274 GLsizei width, | |
275 GLsizei height, | |
276 GLuint io_surface_id, | |
277 GLuint plane) {} | |
278 | |
279 virtual GLuint64 insertFenceSync(); | 273 virtual GLuint64 insertFenceSync(); |
280 virtual void genSyncToken(GLuint64 fence_sync, GLbyte* sync_token); | 274 virtual void genSyncToken(GLuint64 fence_sync, GLbyte* sync_token); |
281 virtual void waitSyncToken(const GLbyte* sync_token); | 275 virtual void waitSyncToken(const GLbyte* sync_token); |
282 virtual void verifySyncTokens(GLbyte** sync_tokens, GLsizei count); | 276 virtual void verifySyncTokens(GLbyte** sync_tokens, GLsizei count); |
283 | 277 |
284 const gpu::SyncToken& last_waited_sync_token() const { | 278 const gpu::SyncToken& last_waited_sync_token() const { |
285 return last_waited_sync_token_; | 279 return last_waited_sync_token_; |
286 } | 280 } |
287 | 281 |
288 const gpu::Capabilities& test_capabilities() const { | 282 const gpu::Capabilities& test_capabilities() const { |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
491 | 485 |
492 scoped_refptr<Namespace> namespace_; | 486 scoped_refptr<Namespace> namespace_; |
493 static Namespace* shared_namespace_; | 487 static Namespace* shared_namespace_; |
494 | 488 |
495 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; | 489 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; |
496 }; | 490 }; |
497 | 491 |
498 } // namespace cc | 492 } // namespace cc |
499 | 493 |
500 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ | 494 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ |
OLD | NEW |