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

Unified Diff: cc/output/direct_renderer.cc

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
« no previous file with comments | « no previous file | cc/output/output_surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/direct_renderer.cc
diff --git a/cc/output/direct_renderer.cc b/cc/output/direct_renderer.cc
index 15f8501ff97f91f516e9d6692bfb68c025216364..9d5cd242f1967bf5c5f62f00914baded686e7d75 100644
--- a/cc/output/direct_renderer.cc
+++ b/cc/output/direct_renderer.cc
@@ -135,7 +135,9 @@ DirectRenderer::DirectRenderer(RendererClient* client,
DirectRenderer::~DirectRenderer() {}
-bool DirectRenderer::CanReadPixels() const { return true; }
+bool DirectRenderer::CanReadPixels() const {
+ return !output_surface_->IsLost();
brianderson 2013/09/06 21:43:15 This hopefully fixes the mac_rel failure when losi
danakj 2013/09/06 21:45:57 This is kinda abuse of this method. It's really me
+}
void DirectRenderer::SetEnlargePassTextureAmountForTesting(
gfx::Vector2d amount) {
« no previous file with comments | « no previous file | cc/output/output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698