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

Side by Side Diff: webkit/compositor_bindings/web_to_ccvideo_frame_provider.h

Issue 12902002: Remove WebVideoFrame, WebVideoFrameProvider, and WebVideoLayer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Just removing code Created 7 years, 9 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 | Annotate | Revision Log
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 WEBKIT_COMPOSITOR_BINDINGS_WEB_TO_CCVIDEO_FRAME_PROVIDER_H_
6 #define WEBKIT_COMPOSITOR_BINDINGS_WEB_TO_CCVIDEO_FRAME_PROVIDER_H_
7
8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "cc/layers/video_frame_provider.h"
11
12 namespace WebKit {
13 class WebVideoFrame;
14 class WebVideoFrameProvider;
15 }
16
17 namespace webkit {
18
19 class WebToCCVideoFrameProvider : public cc::VideoFrameProvider {
20 public:
21 static scoped_ptr<WebToCCVideoFrameProvider> Create(
22 WebKit::WebVideoFrameProvider* web_provider);
23 virtual ~WebToCCVideoFrameProvider();
24
25 // cc::VideoFrameProvider implementation.
26 virtual void SetVideoFrameProviderClient(Client* client) OVERRIDE;
27 virtual scoped_refptr<media::VideoFrame> GetCurrentFrame() OVERRIDE;
28 virtual void PutCurrentFrame(const scoped_refptr<media::VideoFrame>& frame)
29 OVERRIDE;
30
31 private:
32 explicit WebToCCVideoFrameProvider(WebKit::WebVideoFrameProvider*);
33
34 class ClientAdapter;
35 scoped_ptr<ClientAdapter> client_adapter_;
36 WebKit::WebVideoFrameProvider* web_provider_;
37 WebKit::WebVideoFrame* web_frame_;
38
39 DISALLOW_COPY_AND_ASSIGN(WebToCCVideoFrameProvider);
40 };
41
42 } // namespace webkit
43
44 #endif // WEBKIT_COMPOSITOR_BINDINGS_WEB_TO_CCVIDEO_FRAME_PROVIDER_H_
OLDNEW
« no previous file with comments | « webkit/compositor_bindings/web_compositor_support_impl.cc ('k') | webkit/compositor_bindings/web_to_ccvideo_frame_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698