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

Unified Diff: cc/output/output_surface.h

Issue 23503003: cc: Add readback and forced draw states to the Scheduler (Closed) Base URL: http://git.chromium.org/chromium/src.git@schedReorg3
Patch Set: Fix mac_rel failure by returning false from CanReadback when context lost Created 7 years, 3 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
Index: cc/output/output_surface.h
diff --git a/cc/output/output_surface.h b/cc/output/output_surface.h
index 84d128aa023b7dd7c3c25fe5b2ce36e3dd8951be..aab9c3ec35a228a0ca09b4d3bfa0b7f72384d4a2 100644
--- a/cc/output/output_surface.h
+++ b/cc/output/output_surface.h
@@ -125,6 +125,7 @@ class CC_EXPORT OutputSurface : public FrameRateControllerClient {
virtual void SetNeedsBeginFrame(bool enable);
bool HasClient() { return !!client_; }
+ bool IsLost() { return context_is_lost_; }
protected:
// Synchronously initialize context3d and enter hardware mode.
@@ -141,6 +142,7 @@ class CC_EXPORT OutputSurface : public FrameRateControllerClient {
struct cc::OutputSurface::Capabilities capabilities_;
scoped_refptr<ContextProvider> context_provider_;
scoped_ptr<cc::SoftwareOutputDevice> software_device_;
+ bool context_is_lost_;
bool has_gl_discard_backbuffer_;
bool has_swap_buffers_complete_callback_;
gfx::Size surface_size_;

Powered by Google App Engine
This is Rietveld 408576698