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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 GLsizei height, | 268 GLsizei height, |
269 GLenum internalformat, | 269 GLenum internalformat, |
270 GLenum usage); | 270 GLenum usage); |
271 | 271 |
272 virtual void texImageIOSurface2DCHROMIUM(GLenum target, | 272 virtual void texImageIOSurface2DCHROMIUM(GLenum target, |
273 GLsizei width, | 273 GLsizei width, |
274 GLsizei height, | 274 GLsizei height, |
275 GLuint io_surface_id, | 275 GLuint io_surface_id, |
276 GLuint plane) {} | 276 GLuint plane) {} |
277 | 277 |
278 virtual GLuint insertSyncPoint(); | |
279 virtual GLuint64 insertFenceSync(); | 278 virtual GLuint64 insertFenceSync(); |
280 virtual void genSyncToken(GLuint64 fence_sync, GLbyte* sync_token); | 279 virtual void genSyncToken(GLuint64 fence_sync, GLbyte* sync_token); |
281 virtual void waitSyncToken(const GLbyte* sync_token); | 280 virtual void waitSyncToken(const GLbyte* sync_token); |
282 virtual void verifySyncTokens(GLbyte** sync_tokens, GLsizei count); | 281 virtual void verifySyncTokens(GLbyte** sync_tokens, GLsizei count); |
283 | 282 |
284 const gpu::SyncToken& last_waited_sync_token() const { | 283 const gpu::SyncToken& last_waited_sync_token() const { |
285 return last_waited_sync_token_; | 284 return last_waited_sync_token_; |
286 } | 285 } |
287 | 286 |
288 const ContextProvider::Capabilities& test_capabilities() const { | 287 const ContextProvider::Capabilities& test_capabilities() const { |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 | 493 |
495 scoped_refptr<Namespace> namespace_; | 494 scoped_refptr<Namespace> namespace_; |
496 static Namespace* shared_namespace_; | 495 static Namespace* shared_namespace_; |
497 | 496 |
498 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; | 497 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; |
499 }; | 498 }; |
500 | 499 |
501 } // namespace cc | 500 } // namespace cc |
502 | 501 |
503 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ | 502 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ |
OLD | NEW |