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

Unified Diff: cc/output/context_provider.h

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
« no previous file with comments | « cc/layers/texture_layer_unittest.cc ('k') | cc/output/context_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/context_provider.h
diff --git a/cc/output/context_provider.h b/cc/output/context_provider.h
index 0a794d77d6882648cb776fab0b4304843bbdd4d3..d87127c4c63c97ff1b6db193fe7c706aca7b2bc9 100644
--- a/cc/output/context_provider.h
+++ b/cc/output/context_provider.h
@@ -29,7 +29,6 @@ class ContextProvider : public base::RefCountedThreadSafe<ContextProvider> {
virtual class GrContext* GrContext() = 0;
struct Capabilities {
- bool bind_uniform_location;
bool discard_backbuffer;
bool egl_image_external;
bool fast_npot_mo8_textures;
@@ -53,6 +52,9 @@ class ContextProvider : public base::RefCountedThreadSafe<ContextProvider> {
// Returns the capabilities of the currently bound 3d context.
virtual Capabilities ContextCapabilities() = 0;
+ // Checks if the context is currently known to be lost.
+ virtual bool IsContextLost() = 0;
+
// Ask the provider to check if the contexts are valid or lost. If they are,
// this should invalidate the provider so that it can be replaced with a new
// one.
« no previous file with comments | « cc/layers/texture_layer_unittest.cc ('k') | cc/output/context_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698