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

Unified Diff: content/common/gpu/client/context_provider_command_buffer.cc

Issue 51653008: Remove WGC3D::isContextLost references from cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android build Created 7 years, 1 month 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/common/gpu/client/context_provider_command_buffer.cc
diff --git a/content/common/gpu/client/context_provider_command_buffer.cc b/content/common/gpu/client/context_provider_command_buffer.cc
index 59034e12071ae7b4405e4ebdf98d30ded496edb6..a6a3f4e180bdac5ec541ad643603091206f5169b 100644
--- a/content/common/gpu/client/context_provider_command_buffer.cc
+++ b/content/common/gpu/client/context_provider_command_buffer.cc
@@ -165,6 +165,14 @@ ContextProviderCommandBuffer::ContextCapabilities() {
return capabilities_;
}
+bool ContextProviderCommandBuffer::IsContextLost() {
+ DCHECK(context3d_);
+ DCHECK(lost_context_callback_proxy_); // Is bound to thread.
+ DCHECK(context_thread_checker_.CalledOnValidThread());
+
+ return context3d_->isContextLost();
+}
+
void ContextProviderCommandBuffer::VerifyContexts() {
DCHECK(context3d_);
DCHECK(lost_context_callback_proxy_); // Is bound to thread.
@@ -212,7 +220,6 @@ bool ContextProviderCommandBuffer::InitializeCapabilities() {
// TODO(jamesr): This information is duplicated with
// gpu::gles2::FeatureInfo::AddFeatures().
Capabilities caps;
- caps.bind_uniform_location = true;
caps.discard_backbuffer = true;
caps.set_visibility = true;
« no previous file with comments | « content/common/gpu/client/context_provider_command_buffer.h ('k') | content/renderer/pepper/pepper_plugin_instance_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698