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

Unified Diff: third_party/WebKit/Source/platform/graphics/StaticBitmapImage.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/StaticBitmapImage.h
diff --git a/third_party/WebKit/Source/platform/graphics/StaticBitmapImage.h b/third_party/WebKit/Source/platform/graphics/StaticBitmapImage.h
index 2c2a6d26259b2c3ee9f26d91898c47820cc252b7..cc82e41d405bed536c3b106406318c0fba380182 100644
--- a/third_party/WebKit/Source/platform/graphics/StaticBitmapImage.h
+++ b/third_party/WebKit/Source/platform/graphics/StaticBitmapImage.h
@@ -5,6 +5,8 @@
#ifndef StaticBitmapImage_h
#define StaticBitmapImage_h
+#include "gpu/command_buffer/common/mailbox.h"
+#include "gpu/command_buffer/common/sync_token.h"
#include "platform/graphics/Image.h"
#include "third_party/khronos/GLES2/gl2.h"
#include "third_party/skia/include/core/SkRefCnt.h"
@@ -15,7 +17,7 @@ class WebGraphicsContext3DProvider;
class PLATFORM_EXPORT StaticBitmapImage : public Image {
public:
- ~StaticBitmapImage() override { };
+ ~StaticBitmapImage() override;
bool currentFrameIsComplete() override { return true; }
@@ -36,9 +38,13 @@ public:
virtual bool hasMailbox() { return false; }
virtual void transfer() { }
+ virtual gpu::Mailbox getMailbox() { return gpu::Mailbox(); }
+ virtual gpu::SyncToken getSyncToken() { return gpu::SyncToken(); }
+ virtual void ensureMailbox() {}
+
protected:
StaticBitmapImage(sk_sp<SkImage>);
- StaticBitmapImage() { } // empty constructor for derived class.
+ StaticBitmapImage(); // empty constructor for derived class.
sk_sp<SkImage> m_image;
private:

Powered by Google App Engine
This is Rietveld 408576698