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

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

Issue 2328463004: Implement WebGL's commit on the main thread (Closed)
Patch Set: address comments 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..96ea085b1eb2675a27953abcb645fc1eb1c95ec9 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,6 +41,9 @@ public:
// To be called on sender thread before performing a transfer
void transfer() 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&);

Powered by Google App Engine
This is Rietveld 408576698