OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_synchronous_impl
.h" | 5 #include "content/renderer/media/android/stream_texture_factory_synchronous_impl
.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 | 175 |
176 void StreamTextureFactorySynchronousImpl::SetStreamTextureSize( | 176 void StreamTextureFactorySynchronousImpl::SetStreamTextureSize( |
177 int32 stream_id, | 177 int32 stream_id, |
178 const gfx::Size& size) {} | 178 const gfx::Size& size) {} |
179 | 179 |
180 gpu::gles2::GLES2Interface* StreamTextureFactorySynchronousImpl::ContextGL() { | 180 gpu::gles2::GLES2Interface* StreamTextureFactorySynchronousImpl::ContextGL() { |
181 DCHECK(context_provider_); | 181 DCHECK(context_provider_); |
182 return context_provider_->ContextGL(); | 182 return context_provider_->ContextGL(); |
183 } | 183 } |
184 | 184 |
| 185 void StreamTextureFactorySynchronousImpl::AddObserver( |
| 186 StreamTextureFactoryContextObserver* obs) { |
| 187 context_provider_->AddObserver(obs); |
| 188 } |
| 189 |
| 190 void StreamTextureFactorySynchronousImpl::RemoveObserver( |
| 191 StreamTextureFactoryContextObserver* obs) { |
| 192 context_provider_->RemoveObserver(obs); |
| 193 } |
| 194 |
185 } // namespace content | 195 } // namespace content |
OLD | NEW |