Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_RENDERER_MEDIA_STREAM_TEXTURE_IMPL_ANDROID_H_ | |
| 6 #define CONTENT_RENDERER_MEDIA_STREAM_TEXTURE_IMPL_ANDROID_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "base/memory/scoped_ptr.h" | |
| 10 #include "content/renderer/gpu/stream_texture_host_android.h" | |
| 11 #include "webkit/media/android/stream_texture_factory_android.h" | |
| 12 | |
| 13 class GpuChannelHost; | |
| 14 | |
| 15 namespace WebKit { | |
| 16 class WebGraphicsContext3D; | |
| 17 } | |
| 18 | |
| 19 namespace content { | |
| 20 | |
| 21 // The acutal implementation of StreamTextureFactory class. | |
| 22 class StreamTextureFactoryImpl | |
| 23 : public webkit_media::StreamTextureFactory { | |
| 24 public: | |
| 25 StreamTextureFactoryImpl(WebKit::WebGraphicsContext3D* context, | |
| 26 GpuChannelHost* channel, | |
| 27 int view_id); | |
| 28 virtual ~StreamTextureFactoryImpl() OVERRIDE; | |
|
apatrick_chromium
2012/07/12 23:51:31
This isn't an override.
qinmin
2012/07/13 00:41:33
Done.
| |
| 29 | |
| 30 // webkit_media::StreamTextureFactory implementation: | |
| 31 virtual webkit_media::StreamTextureProxy* CreateProxy() OVERRIDE; | |
| 32 | |
| 33 virtual void EstablishPeer(int stream_id, int player_id) OVERRIDE; | |
| 34 | |
| 35 virtual unsigned CreateStreamTexture(unsigned* texture_id) OVERRIDE; | |
| 36 virtual void DestroyStreamTexture(unsigned texture_id) OVERRIDE; | |
| 37 | |
| 38 private: | |
| 39 WebKit::WebGraphicsContext3D* context_; | |
| 40 scoped_refptr<GpuChannelHost> channel_; | |
| 41 int view_id_; | |
| 42 DISALLOW_COPY_AND_ASSIGN(StreamTextureFactoryImpl); | |
| 43 }; | |
| 44 | |
| 45 } // namespace content | |
| 46 | |
| 47 #endif // CONTENT_RENDERER_MEDIA_STREAM_TEXTURE_IMPL_ANDROID_H_ | |
| OLD | NEW |