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

Side by Side Diff: cc/test/fake_video_frame_provider.h

Issue 1057283003: Remove parts of //cc we aren't using (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 8 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 unified diff | Download patch
« no previous file with comments | « cc/test/fake_ui_resource_layer_tree_host_impl.cc ('k') | cc/test/fake_video_frame_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CC_TEST_FAKE_VIDEO_FRAME_PROVIDER_H_
6 #define CC_TEST_FAKE_VIDEO_FRAME_PROVIDER_H_
7
8 #include "cc/layers/video_frame_provider.h"
9 #include "media/base/video_frame.h"
10
11 namespace cc {
12
13 // Fake video frame provider that always provides the same VideoFrame.
14 class FakeVideoFrameProvider : public VideoFrameProvider {
15 public:
16 FakeVideoFrameProvider();
17 ~FakeVideoFrameProvider() override;
18
19 void SetVideoFrameProviderClient(Client* client) override;
20 scoped_refptr<media::VideoFrame> GetCurrentFrame() override;
21 void PutCurrentFrame(const scoped_refptr<media::VideoFrame>&) override {}
22
23 Client* client() { return client_; }
24
25 void set_frame(const scoped_refptr<media::VideoFrame>& frame) {
26 frame_ = frame;
27 }
28
29 private:
30 scoped_refptr<media::VideoFrame> frame_;
31 Client* client_;
32 };
33
34 } // namespace cc
35
36 #endif // CC_TEST_FAKE_VIDEO_FRAME_PROVIDER_H_
OLDNEW
« no previous file with comments | « cc/test/fake_ui_resource_layer_tree_host_impl.cc ('k') | cc/test/fake_video_frame_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698