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

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

Issue 2300633004: Allow canvases to be GPU-accelerated in Workers (Closed)
Patch Set: test expectation 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/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 ca8fd5709fa6cd72104bb9303e3d4dcac829aa3d..519f85b6be9182d4213e1f444e6c48c089204a39 100644
--- a/third_party/WebKit/Source/platform/graphics/gpu/AcceleratedImageBufferSurface.h
+++ b/third_party/WebKit/Source/platform/graphics/gpu/AcceleratedImageBufferSurface.h
@@ -46,13 +46,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; }
sk_sp<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