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

Unified Diff: content/shell/renderer/layout_test/test_video_frame_provider.h

Issue 2005053006: Cleanup naming issue with content::VideoFrameProvider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Comments Created 4 years, 7 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: content/shell/renderer/layout_test/test_video_frame_provider.h
diff --git a/content/shell/renderer/layout_test/test_video_frame_provider.h b/content/shell/renderer/layout_test/test_video_frame_provider.h
deleted file mode 100644
index 72b9d151050927b32741fae70c854fe3229365cb..0000000000000000000000000000000000000000
--- a/content/shell/renderer/layout_test/test_video_frame_provider.h
+++ /dev/null
@@ -1,64 +0,0 @@
-// Copyright 2013 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.
-
-#ifndef CONTENT_SHELL_RENDERER_LAYOUT_TEST_TEST_VIDEO_FRAME_PROVIDER_H_
-#define CONTENT_SHELL_RENDERER_LAYOUT_TEST_TEST_VIDEO_FRAME_PROVIDER_H_
-
-#include "base/macros.h"
-#include "base/time/time.h"
-#include "content/public/renderer/video_frame_provider.h"
-#include "ui/gfx/geometry/size.h"
-
-namespace base {
-class SingleThreadTaskRunner;
-}
-
-namespace content {
-
-// A simple implementation of VideoFrameProvider generates raw frames and
-// passes them to webmediaplayer.
-// Since non-black pixel values are required in the layout test, e.g.,
-// media/video-capture-canvas.html, this class should generate frame with
-// only non-black pixels.
-class TestVideoFrameProvider : public VideoFrameProvider {
- public:
- TestVideoFrameProvider(
- const gfx::Size& size,
- const base::TimeDelta& frame_duration,
- const base::Closure& error_cb,
- const RepaintCB& repaint_cb);
-
- // VideoFrameProvider implementation.
- void Start() override;
- void Stop() override;
- void Play() override;
- void Pause() override;
-
- protected:
- ~TestVideoFrameProvider() override;
-
- private:
- enum State {
- kStarted,
- kPaused,
- kStopped,
- };
-
- void GenerateFrame();
-
- scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
- gfx::Size size_;
- State state_;
-
- base::TimeDelta current_time_;
- base::TimeDelta frame_duration_;
- base::Closure error_cb_;
- RepaintCB repaint_cb_;
-
- DISALLOW_COPY_AND_ASSIGN(TestVideoFrameProvider);
-};
-
-} // namespace content
-
-#endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_TEST_VIDEO_FRAME_PROVIDER_H_

Powered by Google App Engine
This is Rietveld 408576698