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

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

Issue 2267993002: Expose if we are using swiftshader via WebGraphicsContext3DProvider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: softwarerendering: . 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/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 d6f413b18f3fc9de81c825da7bc780f84329d7b6..c4a250f28a9f1803e0a1a1c81bf63f7fadf2b363 100644
--- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.h
@@ -64,6 +64,7 @@ class ImageBuffer;
class ImageBufferSurface;
class ImageData;
class IntSize;
+class WebGraphicsContext3DProvider;
class CanvasRenderingContext2DOrWebGLRenderingContextOrWebGL2RenderingContextOrImageBitmapRenderingContext;
typedef CanvasRenderingContext2DOrWebGLRenderingContextOrWebGL2RenderingContextOrImageBitmapRenderingContext RenderingContext;
@@ -147,8 +148,6 @@ public:
bool hasImageBuffer() const { return m_imageBuffer.get(); }
void discardImageBuffer();
- bool shouldAccelerate(const IntSize&) const;
-
bool shouldBeDirectComposited() const;
void prepareSurfaceForPaintingIfNeeded() const;
@@ -220,6 +219,8 @@ private:
static ContextFactoryVector& renderingContextFactories();
static CanvasRenderingContextFactory* getRenderingContextFactory(int);
+ bool shouldAccelerate(const IntSize&, const WebGraphicsContext3DProvider* sharedMainThreadContextProvider) const;
+
void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicString&) override;
LayoutObject* createLayoutObject(const ComputedStyle&) override;
bool areAuthorShadowsAllowed() const override { return false; }

Powered by Google App Engine
This is Rietveld 408576698