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

Unified Diff: cc/output/gl_renderer.cc

Issue 2158633002: cc: DCHECK background_image_id only if there is a background image (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/gl_renderer.cc
diff --git a/cc/output/gl_renderer.cc b/cc/output/gl_renderer.cc
index 47f1b222c8b2937519ca0539f89a534ffd2bf160..1b8ae4752a00e223ba71e5db57e1657c3b34dde9 100644
--- a/cc/output/gl_renderer.cc
+++ b/cc/output/gl_renderer.cc
@@ -1065,11 +1065,12 @@ void GLRenderer::DrawRenderPassQuadInternal(DrawingFrame* frame,
// pixels' coordinate space.
background_image = ApplyBackgroundFilters(
frame, quad, background_texture.get(), gfx::RectF(background_rect));
- if (background_image)
+ if (background_image) {
background_image_id = skia::GrBackendObjectToGrGLTextureInfo(
background_image->getTextureHandle(true))
->fID;
- DCHECK(background_image_id);
+ DCHECK(background_image_id);
+ }
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698