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

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

Issue 1479673003: Verify resource provider sync tokens before sending to parent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed unit test so it doesn't expect dummy fence sync Created 4 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
« no previous file with comments | « cc/test/test_gles2_interface.cc ('k') | cc/test/test_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 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
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 unsigned insertSyncPoint(); 278 virtual GLuint insertSyncPoint();
279 virtual GLuint64 insertFenceSync();
280 virtual void genSyncToken(GLuint64 fence_sync, GLbyte* sync_token);
279 virtual void waitSyncToken(const GLbyte* sync_token); 281 virtual void waitSyncToken(const GLbyte* sync_token);
282 virtual void verifySyncTokens(GLbyte** sync_tokens, GLsizei count);
280 283
281 const gpu::SyncToken& last_waited_sync_token() const { 284 const gpu::SyncToken& last_waited_sync_token() const {
282 return last_waited_sync_token_; 285 return last_waited_sync_token_;
283 } 286 }
284 287
285 const ContextProvider::Capabilities& test_capabilities() const { 288 const ContextProvider::Capabilities& test_capabilities() const {
286 return test_capabilities_; 289 return test_capabilities_;
287 } 290 }
288 291
289 void set_context_lost(bool context_lost) { context_lost_ = context_lost; } 292 void set_context_lost(bool context_lost) { context_lost_ = context_lost; }
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 unsigned current_framebuffer_; 478 unsigned current_framebuffer_;
476 std::vector<TestWebGraphicsContext3D*> shared_contexts_; 479 std::vector<TestWebGraphicsContext3D*> shared_contexts_;
477 int max_texture_size_; 480 int max_texture_size_;
478 bool reshape_called_; 481 bool reshape_called_;
479 int width_; 482 int width_;
480 int height_; 483 int height_;
481 float scale_factor_; 484 float scale_factor_;
482 TestContextSupport* test_support_; 485 TestContextSupport* test_support_;
483 gfx::Rect update_rect_; 486 gfx::Rect update_rect_;
484 UpdateType last_update_type_; 487 UpdateType last_update_type_;
485 unsigned next_insert_sync_point_; 488 GLuint64 next_insert_fence_sync_;
486 gpu::SyncToken last_waited_sync_token_; 489 gpu::SyncToken last_waited_sync_token_;
487 int unpack_alignment_; 490 int unpack_alignment_;
488 491
489 unsigned bound_buffer_; 492 unsigned bound_buffer_;
490 TextureTargets texture_targets_; 493 TextureTargets texture_targets_;
491 494
492 scoped_refptr<Namespace> namespace_; 495 scoped_refptr<Namespace> namespace_;
493 static Namespace* shared_namespace_; 496 static Namespace* shared_namespace_;
494 497
495 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; 498 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_;
496 }; 499 };
497 500
498 } // namespace cc 501 } // namespace cc
499 502
500 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 503 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
OLDNEW
« no previous file with comments | « cc/test/test_gles2_interface.cc ('k') | cc/test/test_web_graphics_context_3d.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698