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

Unified Diff: content/common/gpu/client/gpu_context_tests.h

Issue 1427543002: Modified old wait sync point functions to also accept new sync tokens. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: format Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/gpu/client/gl_helper_unittest.cc ('k') | content/common/media/video_capture_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/client/gpu_context_tests.h
diff --git a/content/common/gpu/client/gpu_context_tests.h b/content/common/gpu/client/gpu_context_tests.h
index 5b8fb4970bef48bae95fcc533ffa2153c40a0731..814f59a0cb2535690dc9855330bd4771451fe5d7 100644
--- a/content/common/gpu/client/gpu_context_tests.h
+++ b/content/common/gpu/client/gpu_context_tests.h
@@ -10,6 +10,7 @@
#include "base/run_loop.h"
#include "gpu/GLES2/gl2extchromium.h"
#include "gpu/command_buffer/client/context_support.h"
+#include "gpu/command_buffer/common/sync_token.h"
namespace {
@@ -43,7 +44,9 @@ CONTEXT_TEST_F(SignalTest, BasicSignalSyncPointTest) {
if (!context_)
return;
- TestSignalSyncPoint(context_->insertSyncPoint());
+ gpu::SyncToken sync_token;
+ ASSERT_TRUE(context_->insertSyncPoint(sync_token.GetData()));
+ TestSignalSyncPoint(static_cast<unsigned>(sync_token.release_count()));
};
CONTEXT_TEST_F(SignalTest, InvalidSignalSyncPointTest) {
« no previous file with comments | « content/common/gpu/client/gl_helper_unittest.cc ('k') | content/common/media/video_capture_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698