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

Unified Diff: cc/output/output_surface.h

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/output/output_surface.h
diff --git a/cc/output/output_surface.h b/cc/output/output_surface.h
index 740039cbc686eef5e9cf707f85b1100d632e307f..87e4ca8d07550d7666b819fcce1e3254a54ca132 100644
--- a/cc/output/output_surface.h
+++ b/cc/output/output_surface.h
@@ -92,6 +92,9 @@ class CC_EXPORT OutputSurface {
// Get the texture for the main image's overlay.
virtual unsigned GetOverlayTextureId() const = 0;
+ // Returns true if the the surface is more than 8 bits per pixel.
+ virtual bool IsHighBitDepth() const;
enne (OOO) 2017/02/01 23:55:22 Maybe should also be pure virtual like the rest of
danakj 2017/02/02 16:23:09 Yes please.
+
// If this returns true, then the surface will not attempt to draw.
virtual bool SurfaceIsSuspendForRecycle() const = 0;

Powered by Google App Engine
This is Rietveld 408576698