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

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: Fixed crashes Created 7 years, 12 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/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 404a5d779fa05c3feb02db5043ac0b5e472b0ef2..0000000000000000000000000000000000000000
--- a/cc/test/fake_video_frame.cc
+++ /dev/null
@@ -1,67 +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"
-
-using WebKit::WebRect;
-using WebKit::WebSize;
-using WebKit::WebVideoFrame;
-
-namespace cc {
-
-FakeVideoFrame::FakeVideoFrame(const scoped_refptr<media::VideoFrame>& frame)
- : frame_(frame) {}
-
-FakeVideoFrame::~FakeVideoFrame() {}
-
-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();
-}
-
-WebRect FakeVideoFrame::visibleRect() const {
- return frame_->visible_rect();
-}
-
-WebSize FakeVideoFrame::textureSize() const {
- return frame_->coded_size();
-}
-
-// static
-media::VideoFrame* FakeVideoFrame::ToVideoFrame(
- 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

Powered by Google App Engine
This is Rietveld 408576698