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

Unified Diff: cc/test/fake_video_frame.cc

Issue 11754003: Move VideoFrameProvider to, and remove all usage of WebVideoFrame from cc/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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
« no previous file with comments | « cc/test/fake_video_frame.h ('k') | cc/test/fake_video_frame_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_video_frame.cc
diff --git a/cc/test/fake_video_frame.cc b/cc/test/fake_video_frame.cc
deleted file mode 100644
index 3efe46290ed03d3c9b25ee04001da97a200acd91..0000000000000000000000000000000000000000
--- a/cc/test/fake_video_frame.cc
+++ /dev/null
@@ -1,63 +0,0 @@
-// Copyright 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "cc/test/fake_video_frame.h"
-
-namespace cc {
-
-FakeVideoFrame::FakeVideoFrame(const scoped_refptr<media::VideoFrame>& frame)
- : frame_(frame) {}
-
-FakeVideoFrame::~FakeVideoFrame() {}
-
-WebKit::WebVideoFrame::Format FakeVideoFrame::format() const {
- return FormatInvalid;
-}
-
-unsigned FakeVideoFrame::width() const {
- return frame_->natural_size().width();
-}
-
-unsigned FakeVideoFrame::height() const {
- return frame_->natural_size().height();
-}
-
-unsigned FakeVideoFrame::planes() const {
- return 0;
-}
-
-int FakeVideoFrame::stride(unsigned plane) const {
- return 0;
-}
-
-const void* FakeVideoFrame::data(unsigned plane) const {
- return NULL;
-}
-
-unsigned FakeVideoFrame::textureId() const {
- return frame_->texture_id();
-}
-
-unsigned FakeVideoFrame::textureTarget() const {
- return frame_->texture_target();
-}
-
-WebKit::WebRect FakeVideoFrame::visibleRect() const {
- return frame_->visible_rect();
-}
-
-WebKit::WebSize FakeVideoFrame::textureSize() const {
- return frame_->coded_size();
-}
-
-// static
-media::VideoFrame* FakeVideoFrame::ToVideoFrame(
- WebKit::WebVideoFrame* web_video_frame) {
- if (!web_video_frame)
- return NULL;
- FakeVideoFrame* fake_frame = static_cast<FakeVideoFrame*>(web_video_frame);
- return fake_frame->frame_.get();
-}
-
-} // namespace cc
« no previous file with comments | « cc/test/fake_video_frame.h ('k') | cc/test/fake_video_frame_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698