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

Unified Diff: content/renderer/webgraphicscontext3d_provider_impl.cc

Issue 1790753002: Expose GLES2Interface to blink, and delete isContextLost() from WGC3D. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wgc3d: deps-for-tests Created 4 years, 9 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 | « content/renderer/webgraphicscontext3d_provider_impl.h ('k') | gpu/blink/webgraphicscontext3d_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/webgraphicscontext3d_provider_impl.cc
diff --git a/content/renderer/webgraphicscontext3d_provider_impl.cc b/content/renderer/webgraphicscontext3d_provider_impl.cc
index 855bd3df44d514215d3058a32c4122a7a88e7758..1fcdb6309878e10ab5e3fbdeff36528b68cdf3c5 100644
--- a/content/renderer/webgraphicscontext3d_provider_impl.cc
+++ b/content/renderer/webgraphicscontext3d_provider_impl.cc
@@ -16,9 +16,15 @@ WebGraphicsContext3DProviderImpl::WebGraphicsContext3DProviderImpl(
WebGraphicsContext3DProviderImpl::~WebGraphicsContext3DProviderImpl() {}
blink::WebGraphicsContext3D* WebGraphicsContext3DProviderImpl::context3d() {
+ DCHECK_EQ(!!provider_->WebContext3D(), !!provider_->ContextGL());
return provider_->WebContext3D();
}
+gpu::gles2::GLES2Interface* WebGraphicsContext3DProviderImpl::contextGL() {
+ DCHECK_EQ(!!provider_->WebContext3D(), !!provider_->ContextGL());
+ return provider_->ContextGL();
+}
+
GrContext* WebGraphicsContext3DProviderImpl::grContext() {
return provider_->GrContext();
}
« no previous file with comments | « content/renderer/webgraphicscontext3d_provider_impl.h ('k') | gpu/blink/webgraphicscontext3d_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698