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

Unified Diff: third_party/WebKit/Source/core/html/HTMLCanvasElement.h

Issue 2280723003: Avoid making the shared main thread context if we won't use it. (Closed)
Patch Set: regress: name 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/HTMLCanvasElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLCanvasElement.h b/third_party/WebKit/Source/core/html/HTMLCanvasElement.h
index 74346e8fb519732fe0e55d786f2ac412f3a9888b..cd95f855387c2ff7cdae5142ecc98814e8a81d72 100644
--- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.h
@@ -222,7 +222,7 @@ private:
static ContextFactoryVector& renderingContextFactories();
static CanvasRenderingContextFactory* getRenderingContextFactory(int);
- bool shouldAccelerate(const IntSize&, const WebGraphicsContext3DProvider* sharedMainThreadContextProvider) const;
+ bool shouldAccelerate(const IntSize&) const;
void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicString&) override;
LayoutObject* createLayoutObject(const ComputedStyle&) override;
@@ -230,7 +230,8 @@ private:
void reset();
- std::unique_ptr<ImageBufferSurface> createImageBufferSurface(const IntSize& deviceSize, int* msaaSampleCount, sk_sp<SkColorSpace>);
+ std::unique_ptr<ImageBufferSurface> createAcceleratedImageBufferSurface(const IntSize& deviceSize, OpacityMode, sk_sp<SkColorSpace>, int* msaaSampleCount);
+ std::unique_ptr<ImageBufferSurface> createUnacceleratedImageBufferSurface(const IntSize& deviceSize, OpacityMode, sk_sp<SkColorSpace>);
void createImageBuffer();
void createImageBufferInternal(std::unique_ptr<ImageBufferSurface> externalSurface);
bool shouldUseDisplayList(const IntSize& deviceSize);
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698