OLD | NEW |
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 #include "content/browser/renderer_host/surface_texture_transport_client_android
.h" | 5 #include "content/browser/renderer_host/surface_texture_transport_client_android
.h" |
6 | 6 |
7 #include <android/native_window_jni.h> | 7 #include <android/native_window_jni.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "cc/video_layer.h" | 10 #include "cc/layers/video_layer.h" |
11 #include "content/browser/gpu/gpu_surface_tracker.h" | 11 #include "content/browser/gpu/gpu_surface_tracker.h" |
12 #include "content/browser/renderer_host/compositor_impl_android.h" | 12 #include "content/browser/renderer_host/compositor_impl_android.h" |
13 #include "content/browser/renderer_host/image_transport_factory_android.h" | 13 #include "content/browser/renderer_host/image_transport_factory_android.h" |
14 #include "content/common/android/surface_texture_bridge.h" | 14 #include "content/common/android/surface_texture_bridge.h" |
15 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" | 15 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" |
16 #include "third_party/WebKit/Source/Platform/chromium/public/WebVideoLayer.h" | 16 #include "third_party/WebKit/Source/Platform/chromium/public/WebVideoLayer.h" |
17 #include "webkit/compositor_bindings/web_compositor_support_impl.h" | 17 #include "webkit/compositor_bindings/web_compositor_support_impl.h" |
18 #include "webkit/media/webvideoframe_impl.h" | 18 #include "webkit/media/webvideoframe_impl.h" |
19 | 19 |
20 namespace { | 20 namespace { |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 | 98 |
99 void SurfaceTextureTransportClient::PutCurrentFrame( | 99 void SurfaceTextureTransportClient::PutCurrentFrame( |
100 const scoped_refptr<media::VideoFrame>& frame) { | 100 const scoped_refptr<media::VideoFrame>& frame) { |
101 } | 101 } |
102 | 102 |
103 void SurfaceTextureTransportClient::OnSurfaceTextureFrameAvailable() { | 103 void SurfaceTextureTransportClient::OnSurfaceTextureFrameAvailable() { |
104 video_layer_->SetNeedsDisplay(); | 104 video_layer_->SetNeedsDisplay(); |
105 } | 105 } |
106 | 106 |
107 } // namespace content | 107 } // namespace content |
OLD | NEW |