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

Unified Diff: third_party/WebKit/Source/platform/graphics/AcceleratedStaticBitmapImage.h

Issue 2328463004: Implement WebGL's commit on the main thread (Closed)
Patch Set: fix compile error on win_dbg Created 4 years, 3 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/AcceleratedStaticBitmapImage.h
diff --git a/third_party/WebKit/Source/platform/graphics/AcceleratedStaticBitmapImage.h b/third_party/WebKit/Source/platform/graphics/AcceleratedStaticBitmapImage.h
index e423490f14e67e3027cbb1ed728176d82528de23..cf1b1a41aacd432d637bb098e438ad2cb3478f92 100644
--- a/third_party/WebKit/Source/platform/graphics/AcceleratedStaticBitmapImage.h
+++ b/third_party/WebKit/Source/platform/graphics/AcceleratedStaticBitmapImage.h
@@ -6,8 +6,6 @@
#define AcceleratedStaticBitmapImage_h
#include "base/threading/thread_checker.h"
-#include "gpu/command_buffer/common/mailbox.h"
-#include "gpu/command_buffer/common/sync_token.h"
#include "platform/geometry/IntSize.h"
#include "platform/graphics/StaticBitmapImage.h"
#include "third_party/skia/include/core/SkRefCnt.h"
@@ -43,11 +41,14 @@ public:
// To be called on sender thread before performing a transfer
void transfer() final;
+ void ensureMailbox() final;
+ gpu::Mailbox getMailbox() final { return m_mailbox; }
+ gpu::SyncToken getSyncToken() final { return m_syncToken; }
+
private:
AcceleratedStaticBitmapImage(sk_sp<SkImage>);
AcceleratedStaticBitmapImage(sk_sp<SkImage>, const gpu::Mailbox&, const gpu::SyncToken&);
- void ensureMailbox();
void createImageFromMailboxIfNeeded();
void checkThread();
void waitSyncTokenIfNeeded();

Powered by Google App Engine
This is Rietveld 408576698