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

Unified Diff: third_party/WebKit/public/platform/WebGraphicsContext3DProvider.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/public/platform/WebGraphicsContext3DProvider.h
diff --git a/third_party/WebKit/public/platform/WebGraphicsContext3DProvider.h b/third_party/WebKit/public/platform/WebGraphicsContext3DProvider.h
index e889aa321b9303d66e19545f7855bcf21e2fa485..3a5bbe6c939ae5e6ec2d4ab63e0ea31e49b9a1de 100644
--- a/third_party/WebKit/public/platform/WebGraphicsContext3DProvider.h
+++ b/third_party/WebKit/public/platform/WebGraphicsContext3DProvider.h
@@ -54,6 +54,10 @@ public:
virtual GrContext* grContext() = 0;
virtual gpu::Capabilities getCapabilities() = 0;
+ // Returns true if the context is driven by software emulation of GL. In
+ // this scenario, the compositor would not be using GPU.
+ virtual bool isSoftwareRendering() const = 0;
+
virtual void setLostContextCallback(WebClosure) = 0;
virtual void setErrorMessageCallback(WebFunction<void(const char* msg, int32_t id)>) = 0;
};

Powered by Google App Engine
This is Rietveld 408576698