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

Unified Diff: content/renderer/webgraphicscontext3d_provider_impl.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: content/renderer/webgraphicscontext3d_provider_impl.h
diff --git a/content/renderer/webgraphicscontext3d_provider_impl.h b/content/renderer/webgraphicscontext3d_provider_impl.h
index c5f681c169884515833867a3efa3ca6ee3173a19..52ce2e510ff5a8fd74f79f88a4ae9804db5acb39 100644
--- a/content/renderer/webgraphicscontext3d_provider_impl.h
+++ b/content/renderer/webgraphicscontext3d_provider_impl.h
@@ -23,7 +23,8 @@ class CONTENT_EXPORT WebGraphicsContext3DProviderImpl
: public NON_EXPORTED_BASE(blink::WebGraphicsContext3DProvider) {
public:
explicit WebGraphicsContext3DProviderImpl(
- scoped_refptr<ContextProviderCommandBuffer> provider);
+ scoped_refptr<ContextProviderCommandBuffer> provider,
+ bool software_rendering);
~WebGraphicsContext3DProviderImpl() override;
// WebGraphicsContext3DProvider implementation.
@@ -31,6 +32,7 @@ class CONTENT_EXPORT WebGraphicsContext3DProviderImpl
gpu::gles2::GLES2Interface* contextGL() override;
GrContext* grContext() override;
gpu::Capabilities getCapabilities() override;
+ bool isSoftwareRendering() const override;
void setLostContextCallback(blink::WebClosure) override;
void setErrorMessageCallback(
blink::WebFunction<void(const char*, int32_t)>) override;
@@ -41,6 +43,7 @@ class CONTENT_EXPORT WebGraphicsContext3DProviderImpl
private:
scoped_refptr<ContextProviderCommandBuffer> provider_;
+ const bool software_rendering_;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698