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

Unified Diff: media/base/video_frame.cc

Issue 850993002: gpu video: optimize HW video to SW canvas and implement it for WebRTC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android build fail Created 5 years, 10 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 | « media/base/video_frame.h ('k') | media/base/video_frame_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/video_frame.cc
diff --git a/media/base/video_frame.cc b/media/base/video_frame.cc
index cacaff38901cfcd56dd9a2f330828247ed2398fb..7f4f78397d7c3633ca253766cf1f36ab3b8a5f7f 100644
--- a/media/base/video_frame.cc
+++ b/media/base/video_frame.cc
@@ -16,10 +16,6 @@
#include "media/base/video_util.h"
#include "ui/gfx/geometry/point.h"
-#if !defined(MEDIA_FOR_CAST_IOS)
-#include "third_party/skia/include/core/SkBitmap.h"
-#endif
-
namespace media {
static bool IsPowerOfTwo(size_t x) {
@@ -253,7 +249,6 @@ scoped_refptr<VideoFrame> VideoFrame::WrapNativeTexture(
const gfx::Rect& visible_rect,
const gfx::Size& natural_size,
base::TimeDelta timestamp,
- const ReadPixelsCB& read_pixels_cb,
bool allow_overlay) {
scoped_refptr<VideoFrame> frame(new VideoFrame(NATIVE_TEXTURE,
coded_size,
@@ -263,20 +258,11 @@ scoped_refptr<VideoFrame> VideoFrame::WrapNativeTexture(
timestamp,
false));
frame->mailbox_holder_release_cb_ = mailbox_holder_release_cb;
- frame->read_pixels_cb_ = read_pixels_cb;
frame->allow_overlay_ = allow_overlay;
return frame;
}
-#if !defined(MEDIA_FOR_CAST_IOS)
-void VideoFrame::ReadPixelsFromNativeTexture(const SkBitmap& pixels) {
- DCHECK_EQ(format_, NATIVE_TEXTURE);
- if (!read_pixels_cb_.is_null())
- read_pixels_cb_.Run(pixels);
-}
-#endif
-
// static
scoped_refptr<VideoFrame> VideoFrame::WrapExternalPackedMemory(
Format format,
« no previous file with comments | « media/base/video_frame.h ('k') | media/base/video_frame_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698