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

Side by Side Diff: content/browser/renderer_host/surface_texture_transport_client_android.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: rebase 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_SURFACE_TEXTURE_TRANSPORT_CLIENT_ANDROID_H _ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_SURFACE_TEXTURE_TRANSPORT_CLIENT_ANDROID_H _
6 #define CONTENT_BROWSER_RENDERER_HOST_SURFACE_TEXTURE_TRANSPORT_CLIENT_ANDROID_H _ 6 #define CONTENT_BROWSER_RENDERER_HOST_SURFACE_TEXTURE_TRANSPORT_CLIENT_ANDROID_H _
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "third_party/WebKit/Source/Platform/chromium/public/WebVideoFrameProvid er.h" 10 #include "cc/video_frame_provider.h"
11 #include "ui/gfx/native_widget_types.h" 11 #include "ui/gfx/native_widget_types.h"
12 #include "ui/gfx/size.h"
12 13
13 struct ANativeWindow; 14 struct ANativeWindow;
14 15
15 namespace cc { 16 namespace cc {
16 class Layer; 17 class Layer;
17 class VideoLayer; 18 class VideoLayer;
18 } 19 }
19 20
20 namespace content { 21 namespace content {
21 class SurfaceTextureBridge; 22 class SurfaceTextureBridge;
22 23
23 class SurfaceTextureTransportClient : public WebKit::WebVideoFrameProvider { 24 class SurfaceTextureTransportClient : public cc::VideoFrameProvider {
24 public: 25 public:
25 SurfaceTextureTransportClient(); 26 SurfaceTextureTransportClient();
26 virtual ~SurfaceTextureTransportClient(); 27 virtual ~SurfaceTextureTransportClient();
27 28
28 scoped_refptr<cc::Layer> Initialize(); 29 scoped_refptr<cc::Layer> Initialize();
29 gfx::GLSurfaceHandle GetCompositingSurface(int surface_id); 30 gfx::GLSurfaceHandle GetCompositingSurface(int surface_id);
30 void SetSize(const gfx::Size& size); 31 void SetSize(const gfx::Size& size);
31 32
32 // WebKit::WebVideoFrameProvider implementation. 33 // cc::VideoFrameProvider implementation.
33 virtual void setVideoFrameProviderClient(Client*) OVERRIDE {} 34 virtual void SetVideoFrameProviderClient(Client*) OVERRIDE {}
34 virtual WebKit::WebVideoFrame* getCurrentFrame() OVERRIDE; 35 virtual scoped_refptr<media::VideoFrame> GetCurrentFrame() OVERRIDE;
35 virtual void putCurrentFrame(WebKit::WebVideoFrame* frame) OVERRIDE; 36 virtual void PutCurrentFrame(const scoped_refptr<media::VideoFrame>& frame)
37 OVERRIDE;
36 38
37 private: 39 private:
38 void OnSurfaceTextureFrameAvailable(); 40 void OnSurfaceTextureFrameAvailable();
39 41
40 scoped_refptr<cc::VideoLayer> video_layer_; 42 scoped_refptr<cc::VideoLayer> video_layer_;
41 scoped_refptr<SurfaceTextureBridge> surface_texture_; 43 scoped_refptr<SurfaceTextureBridge> surface_texture_;
42 ANativeWindow* window_; 44 ANativeWindow* window_;
43 scoped_ptr<WebKit::WebVideoFrame> video_frame_; 45 scoped_refptr<media::VideoFrame> video_frame_;
44 uint32 texture_id_; 46 uint32 texture_id_;
45 47
46 DISALLOW_COPY_AND_ASSIGN(SurfaceTextureTransportClient); 48 DISALLOW_COPY_AND_ASSIGN(SurfaceTextureTransportClient);
47 }; 49 };
48 50
49 } // namespace content 51 } // namespace content
50 52
51 #endif // CONTENT_BROWSER_RENDERER_HOST_SURFACE_TEXTURE_TRANSPORT_CLIENT_ANDROI D_H_ 53 #endif // CONTENT_BROWSER_RENDERER_HOST_SURFACE_TEXTURE_TRANSPORT_CLIENT_ANDROI D_H_
OLDNEW
« no previous file with comments | « cc/video_layer_impl.cc ('k') | content/browser/renderer_host/surface_texture_transport_client_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698