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

Unified Diff: third_party/WebKit/Source/platform/graphics/gpu/AcceleratedImageBufferSurface.h

Issue 2300633004: Allow canvases to be GPU-accelerated in Workers (Closed)
Patch Set: Created 4 years, 4 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/AcceleratedImageBufferSurface.h
diff --git a/third_party/WebKit/Source/platform/graphics/gpu/AcceleratedImageBufferSurface.h b/third_party/WebKit/Source/platform/graphics/gpu/AcceleratedImageBufferSurface.h
index dc1163f82d1c2b3fdc94faa78e1642ea5da4eed3..2da2914866948eb9d0b7d384b3d7e8c8a2179acf 100644
--- a/third_party/WebKit/Source/platform/graphics/gpu/AcceleratedImageBufferSurface.h
+++ b/third_party/WebKit/Source/platform/graphics/gpu/AcceleratedImageBufferSurface.h
@@ -45,13 +45,13 @@ public:
~AcceleratedImageBufferSurface() override { }
SkCanvas* canvas() override { return m_surface ? m_surface->getCanvas() : nullptr; }
- bool isValid() const override { return m_surface; }
+ bool isValid() const override;
bool isAccelerated() const override { return true; }
PassRefPtr<SkImage> newImageSnapshot(AccelerationHint, SnapshotReason) override;
GLuint getBackingTextureHandleForOverwrite() override;
private:
- std::unique_ptr<WebGraphicsContext3DProvider> m_contextProvider;
+ unsigned m_contextId;
sk_sp<SkSurface> m_surface; // Uses m_contextProvider.
};

Powered by Google App Engine
This is Rietveld 408576698