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

Unified Diff: content/renderer/webgraphicscontext3d_provider_impl.cc

Issue 1813603003: Remove nullchecks for the provider's context. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « no previous file | third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp » ('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 1fcdb6309878e10ab5e3fbdeff36528b68cdf3c5..5151e8a1984ffb045573cf282b62a80f49fb0385 100644
--- a/content/renderer/webgraphicscontext3d_provider_impl.cc
+++ b/content/renderer/webgraphicscontext3d_provider_impl.cc
@@ -16,12 +16,10 @@ 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();
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698