| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/renderer/media/android/stream_texture_factory_android_impl.h" | 5 #include "content/renderer/media/android/stream_texture_factory_android_impl.h" |
| 6 | 6 |
| 7 #include "content/common/gpu/client/gpu_channel_host.h" | 7 #include "content/common/gpu/client/gpu_channel_host.h" |
| 8 #include "content/common/gpu/gpu_messages.h" | 8 #include "content/common/gpu/gpu_messages.h" |
| 9 #include "content/renderer/gpu/stream_texture_host_android.h" | 9 #include "content/renderer/gpu/stream_texture_host_android.h" |
| 10 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" | 10 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 73 |
| 74 void StreamTextureProxyImpl::OnMatrixChanged(const float matrix[16]) { | 74 void StreamTextureProxyImpl::OnMatrixChanged(const float matrix[16]) { |
| 75 base::AutoLock lock(client_lock_); | 75 base::AutoLock lock(client_lock_); |
| 76 if (client_) | 76 if (client_) |
| 77 client_->DidUpdateMatrix(matrix); | 77 client_->DidUpdateMatrix(matrix); |
| 78 } | 78 } |
| 79 | 79 |
| 80 } // namespace | 80 } // namespace |
| 81 | 81 |
| 82 StreamTextureFactoryImpl::StreamTextureFactoryImpl( | 82 StreamTextureFactoryImpl::StreamTextureFactoryImpl( |
| 83 WebKit::WebGraphicsContext3D* context, | 83 blink::WebGraphicsContext3D* context, |
| 84 GpuChannelHost* channel, | 84 GpuChannelHost* channel, |
| 85 int view_id) | 85 int view_id) |
| 86 : context_(context), channel_(channel), view_id_(view_id) { | 86 : context_(context), channel_(channel), view_id_(view_id) { |
| 87 DCHECK(context_); | 87 DCHECK(context_); |
| 88 DCHECK(channel); | 88 DCHECK(channel); |
| 89 } | 89 } |
| 90 | 90 |
| 91 StreamTextureFactoryImpl::~StreamTextureFactoryImpl() {} | 91 StreamTextureFactoryImpl::~StreamTextureFactoryImpl() {} |
| 92 | 92 |
| 93 StreamTextureProxy* StreamTextureFactoryImpl::CreateProxy() { | 93 StreamTextureProxy* StreamTextureFactoryImpl::CreateProxy() { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 context_->deleteTexture(texture_id); | 130 context_->deleteTexture(texture_id); |
| 131 context_->flush(); | 131 context_->flush(); |
| 132 } | 132 } |
| 133 } | 133 } |
| 134 | 134 |
| 135 void StreamTextureFactoryImpl::SetStreamTextureSize( | 135 void StreamTextureFactoryImpl::SetStreamTextureSize( |
| 136 int32 stream_id, const gfx::Size& size) { | 136 int32 stream_id, const gfx::Size& size) { |
| 137 channel_->Send(new GpuChannelMsg_SetStreamTextureSize(stream_id, size)); | 137 channel_->Send(new GpuChannelMsg_SetStreamTextureSize(stream_id, size)); |
| 138 } | 138 } |
| 139 | 139 |
| 140 WebKit::WebGraphicsContext3D* StreamTextureFactoryImpl::Context3d() { | 140 blink::WebGraphicsContext3D* StreamTextureFactoryImpl::Context3d() { |
| 141 return context_; | 141 return context_; |
| 142 } | 142 } |
| 143 | 143 |
| 144 } // namespace content | 144 } // namespace content |
| OLD | NEW |