diff options
Diffstat (limited to 'chromium/components/viz/common/frame_sinks/copy_output_result.h')
-rw-r--r-- | chromium/components/viz/common/frame_sinks/copy_output_result.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chromium/components/viz/common/frame_sinks/copy_output_result.h b/chromium/components/viz/common/frame_sinks/copy_output_result.h index 5e6318c6f3c..2ae0b84452e 100644 --- a/chromium/components/viz/common/frame_sinks/copy_output_result.h +++ b/chromium/components/viz/common/frame_sinks/copy_output_result.h @@ -104,6 +104,11 @@ class VIZ_COMMON_EXPORT CopyOutputResult { uint8_t* v_out, int v_out_stride) const; + // Copies the result of an RGBA_BITMAP into |dest|. The result is in N32Premul + // form. Returns true if successful, or false if: 1) the result is empty, or + // 2) the result format is not RGBA_BITMAP and conversion is not implemented. + virtual bool ReadRGBAPlane(uint8_t* dest, int stride) const; + protected: // Accessor for subclasses to initialize the cached SkBitmap. SkBitmap* cached_bitmap() const { return &cached_bitmap_; } |