Index: media/base/video_frame.h |
diff --git a/media/base/video_frame.h b/media/base/video_frame.h |
index 1ea26001de46d161bebc0cf9a1c6853c55eb84d7..59583141d2e18773b00124bfd0f6fb0c1ec2984b 100644 |
--- a/media/base/video_frame.h |
+++ b/media/base/video_frame.h |
@@ -108,10 +108,12 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> { |
base::TimeDelta timestamp, |
const ReadPixelsCB& read_pixels_cb); |
+#if !defined(MEDIA_CAST) |
// Read pixels from the native texture backing |*this| and write |
// them to |pixels| as BGRA. |pixels| must point to a buffer at |
// least as large as 4 * visible_rect().size().GetArea(). |
void ReadPixelsFromNativeTexture(const SkBitmap& pixels); |
+#endif |
// Wraps packed image data residing in a memory buffer with a VideoFrame. |
// The image data resides in |data| and is assumed to be packed tightly in a |