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

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

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: 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 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/scoped_ptr.h"
9 #include "cc/video_frame_provider.h"
10
11 namespace WebKit {
12 class WebVideoFrame;
13 class WebVideoFrameProvider;
14 }
15
16 namespace webkit {
17
18 class WebToCCVideoFrameProvider : public cc::VideoFrameProvider {
19 public:
20 static scoped_ptr<WebToCCVideoFrameProvider> Create(
21 WebKit::WebVideoFrameProvider* web_provider);
22 virtual ~WebToCCVideoFrameProvider();
23
24 // cc::VideoFrameProvider implementation.
25 virtual void SetVideoFrameProviderClient(Client*) OVERRIDE;
26 virtual scoped_refptr<media::VideoFrame> GetCurrentFrame() OVERRIDE;
27 virtual void PutCurrentFrame(scoped_refptr<media::VideoFrame> frame) OVERRIDE;
28
29 private:
30 explicit WebToCCVideoFrameProvider(WebKit::WebVideoFrameProvider*);
31
32 class ClientAdapter;
33 scoped_ptr<ClientAdapter> client_adapter_;
34 WebKit::WebVideoFrameProvider* web_provider_;
35 WebKit::WebVideoFrame* web_frame_;
36 };
37
38 } // namespace webkit
39
40 #endif // WEBKIT_COMPOSITOR_BINDINGS_WEB_TO_CCVIDEO_FRAME_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698