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

Unified Diff: cc/raster/gpu_raster_buffer_provider.cc

Issue 2674493003: Add compositor support for half-float RGBA buffers and textures (Closed)
Patch Set: Created 3 years, 11 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/raster/gpu_raster_buffer_provider.cc
diff --git a/cc/raster/gpu_raster_buffer_provider.cc b/cc/raster/gpu_raster_buffer_provider.cc
index d87492844d4e7812079143f3cfbcab8c4f46a602..0c18cc40514219791cbf02525dfb48b115f9749c 100644
--- a/cc/raster/gpu_raster_buffer_provider.cc
+++ b/cc/raster/gpu_raster_buffer_provider.cc
@@ -49,8 +49,10 @@ static void RasterizeSource(
SkSurface* sk_surface = scoped_surface.sk_surface();
// Allocating an SkSurface will fail after a lost context. Pretend we
// rasterized, as the contents of the resource don't matter anymore.
- if (!sk_surface)
+ if (!sk_surface) {
+ DLOG(ERROR) << "Failed to allocate raster surface";
return;
+ }
// Playback
gfx::Rect playback_rect = raster_full_rect;

Powered by Google App Engine
This is Rietveld 408576698