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

Unified Diff: third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTest.cpp

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: Fix mock gpu video accelerator factory Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698