Index: third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTest.cpp |
diff --git a/third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTest.cpp b/third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTest.cpp |
index 574379e0151f9100919dd87bb9f9afecb1a8e549..4a69d630d766b8529ef252ab588e9baaf93b4d02 100644 |
--- a/third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTest.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTest.cpp |
@@ -95,9 +95,13 @@ public: |
return ++syncPointGenerator; |
} |
- void waitSyncPoint(unsigned syncPoint) override |
+ void waitSyncPoint(unsigned syncPoint, const WGC3Dbyte* syncToken) override |
{ |
m_mostRecentlyWaitedSyncPoint = syncPoint; |
+ if (syncToken) { |
+ memcpy(m_mostRecentlyWaitedSyncToken, syncToken, |
+ sizeof(m_mostRecentlyWaitedSyncToken)); |
+ } |
} |
WGC3Duint createGpuMemoryBufferImageCHROMIUM(WGC3Dsizei width, WGC3Dsizei height, WGC3Denum internalformat, WGC3Denum usage) override |
@@ -141,6 +145,11 @@ public: |
return m_mostRecentlyWaitedSyncPoint; |
} |
+ const WGC3Dbyte* mostRecentlyWaitedSyncToken() |
+ { |
+ return m_mostRecentlyWaitedSyncToken; |
+ } |
+ |
WGC3Duint nextImageIdToBeCreated() |
{ |
return m_currentImageId; |
@@ -152,6 +161,7 @@ private: |
WGC3Dbyte m_currentMailboxByte; |
IntSize m_mostRecentlyProducedSize; |
unsigned m_mostRecentlyWaitedSyncPoint; |
+ WGC3Dbyte m_mostRecentlyWaitedSyncToken[24]; |
Justin Novosad
2015/10/27 19:24:15
24 -> GL_SYNC_TOKEN_SIZE_CHROMIUM
David Yen
2015/10/28 22:03:43
Changed so this is no longer relevant.
|
WGC3Duint m_currentImageId; |
HashMap<WGC3Duint, IntSize> m_imageSizes; |
HashMap<WGC3Duint, WebGLId> m_imageToTextureMap; |