Index: gpu/command_buffer/tests/gl_fence_sync_unittest.cc |
diff --git a/gpu/command_buffer/tests/gl_fence_sync_unittest.cc b/gpu/command_buffer/tests/gl_fence_sync_unittest.cc |
index ad21f345a870078e90dc59b20b75ba280883ee3c..5c86dc328ebc224b668fa8b89d473f2bf25d664b 100644 |
--- a/gpu/command_buffer/tests/gl_fence_sync_unittest.cc |
+++ b/gpu/command_buffer/tests/gl_fence_sync_unittest.cc |
@@ -7,6 +7,7 @@ |
#include <GLES2/gl2extchromium.h> |
#include "base/memory/scoped_ptr.h" |
+#include "gpu/command_buffer/common/sync_token.h" |
#include "gpu/command_buffer/service/sync_point_manager.h" |
#include "gpu/command_buffer/tests/gl_manager.h" |
#include "gpu/command_buffer/tests/gl_test_utils.h" |
@@ -44,9 +45,9 @@ TEST_F(GLFenceSyncTest, SimpleReleaseWait) { |
gl1_.MakeCurrent(); |
const GLuint64 fence_sync = glInsertFenceSyncCHROMIUM(); |
- GLbyte sync_token[GL_SYNC_TOKEN_SIZE_CHROMIUM]; |
+ SyncToken sync_token; |
glFlush(); |
- glGenSyncTokenCHROMIUM(fence_sync, sync_token); |
+ glGenSyncTokenCHROMIUM(fence_sync, sync_token.data); |
ASSERT_TRUE(GL_NO_ERROR == glGetError()); |
// Make sure it is actually released. |
@@ -56,7 +57,7 @@ TEST_F(GLFenceSyncTest, SimpleReleaseWait) { |
EXPECT_TRUE(gl1_client_state->IsFenceSyncReleased(fence_sync)); |
gl2_.MakeCurrent(); |
- glWaitSyncTokenCHROMIUM(sync_token); |
+ glWaitSyncTokenCHROMIUM(sync_token.data); |
glFinish(); |
// gl2 should not have released anything. |