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

Unified Diff: webkit/common/gpu/context_provider_in_process.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: webkit/common/gpu/context_provider_in_process.cc
diff --git a/webkit/common/gpu/context_provider_in_process.cc b/webkit/common/gpu/context_provider_in_process.cc
index bbadcb990c108f14ce99b0366c6deef912f2f05c..4be7b2b5f45259320b724e4b325e81f06c4396ba 100644
--- a/webkit/common/gpu/context_provider_in_process.cc
+++ b/webkit/common/gpu/context_provider_in_process.cc
@@ -125,7 +125,6 @@ ContextProviderInProcess::ContextCapabilities() {
// We always use a WebGraphicsContext3DInProcessCommandBufferImpl which
// provides the following capabilities:
Capabilities caps;
- caps.bind_uniform_location = true;
caps.discard_backbuffer = true;
caps.map_image = true;
caps.map_sub = true;
@@ -174,6 +173,14 @@ class GrContext* ContextProviderInProcess::GrContext() {
return gr_context_->get();
}
+bool ContextProviderInProcess::IsContextLost() {
+ DCHECK(context3d_);
+ DCHECK(lost_context_callback_proxy_); // Is bound to thread.
+ DCHECK(context_thread_checker_.CalledOnValidThread());
+
+ return context3d_->isContextLost();
+}
+
void ContextProviderInProcess::VerifyContexts() {
DCHECK(context3d_);
DCHECK(lost_context_callback_proxy_); // Is bound to thread.
« no previous file with comments | « webkit/common/gpu/context_provider_in_process.h ('k') | webkit/renderer/compositor_bindings/web_external_texture_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698