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

Side by Side Diff: content/browser/renderer_host/surface_texture_transport_client_android.h

Issue 14199002: Send hardware video frames with mailboxes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: No ifdefs Created 7 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 | 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 "cc/layers/video_frame_provider.h" 10 #include "cc/layers/video_frame_provider.h"
11 #include "gpu/command_buffer/common/mailbox.h"
11 #include "ui/gfx/native_widget_types.h" 12 #include "ui/gfx/native_widget_types.h"
12 #include "ui/gfx/size.h" 13 #include "ui/gfx/size.h"
13 14
14 struct ANativeWindow; 15 struct ANativeWindow;
15 16
16 namespace cc { 17 namespace cc {
17 class Layer; 18 class Layer;
18 class VideoLayer; 19 class VideoLayer;
19 } 20 }
20 21
(...skipping 16 matching lines...) Expand all
37 OVERRIDE; 38 OVERRIDE;
38 39
39 private: 40 private:
40 void OnSurfaceTextureFrameAvailable(); 41 void OnSurfaceTextureFrameAvailable();
41 42
42 scoped_refptr<cc::VideoLayer> video_layer_; 43 scoped_refptr<cc::VideoLayer> video_layer_;
43 scoped_refptr<SurfaceTextureBridge> surface_texture_; 44 scoped_refptr<SurfaceTextureBridge> surface_texture_;
44 ANativeWindow* window_; 45 ANativeWindow* window_;
45 scoped_refptr<media::VideoFrame> video_frame_; 46 scoped_refptr<media::VideoFrame> video_frame_;
46 uint32 texture_id_; 47 uint32 texture_id_;
48 gpu::Mailbox texture_mailbox_;
49 uint32 texture_mailbox_sync_point_;
47 int surface_id_; 50 int surface_id_;
48 51
49 DISALLOW_COPY_AND_ASSIGN(SurfaceTextureTransportClient); 52 DISALLOW_COPY_AND_ASSIGN(SurfaceTextureTransportClient);
50 }; 53 };
51 54
52 } // namespace content 55 } // namespace content
53 56
54 #endif // CONTENT_BROWSER_RENDERER_HOST_SURFACE_TEXTURE_TRANSPORT_CLIENT_ANDROI D_H_ 57 #endif // CONTENT_BROWSER_RENDERER_HOST_SURFACE_TEXTURE_TRANSPORT_CLIENT_ANDROI D_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698