| 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 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_IMPL_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_IMPL_H_ | 6 #define CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 gpu::GpuChannelHost* channel); | 32 gpu::GpuChannelHost* channel); |
| 33 | 33 |
| 34 // StreamTextureFactory implementation. | 34 // StreamTextureFactory implementation. |
| 35 StreamTextureProxy* CreateProxy() override; | 35 StreamTextureProxy* CreateProxy() override; |
| 36 void EstablishPeer(int32_t stream_id, int player_id, int frame_id) override; | 36 void EstablishPeer(int32_t stream_id, int player_id, int frame_id) override; |
| 37 unsigned CreateStreamTexture(unsigned texture_target, | 37 unsigned CreateStreamTexture(unsigned texture_target, |
| 38 unsigned* texture_id, | 38 unsigned* texture_id, |
| 39 gpu::Mailbox* texture_mailbox) override; | 39 gpu::Mailbox* texture_mailbox) override; |
| 40 void SetStreamTextureSize(int32_t texture_id, const gfx::Size& size) override; | 40 void SetStreamTextureSize(int32_t texture_id, const gfx::Size& size) override; |
| 41 gpu::gles2::GLES2Interface* ContextGL() override; | 41 gpu::gles2::GLES2Interface* ContextGL() override; |
| 42 void AddObserver(StreamTextureFactoryContextObserver* obs) override; | |
| 43 void RemoveObserver(StreamTextureFactoryContextObserver* obs) override; | |
| 44 | 42 |
| 45 private: | 43 private: |
| 46 friend class base::RefCounted<StreamTextureFactoryImpl>; | 44 friend class base::RefCounted<StreamTextureFactoryImpl>; |
| 47 StreamTextureFactoryImpl( | 45 StreamTextureFactoryImpl( |
| 48 const scoped_refptr<ContextProviderCommandBuffer>& context_provider, | 46 const scoped_refptr<ContextProviderCommandBuffer>& context_provider, |
| 49 gpu::GpuChannelHost* channel); | 47 gpu::GpuChannelHost* channel); |
| 50 ~StreamTextureFactoryImpl() override; | 48 ~StreamTextureFactoryImpl() override; |
| 51 | 49 |
| 52 scoped_refptr<ContextProviderCommandBuffer> context_provider_; | 50 scoped_refptr<ContextProviderCommandBuffer> context_provider_; |
| 53 scoped_refptr<gpu::GpuChannelHost> channel_; | 51 scoped_refptr<gpu::GpuChannelHost> channel_; |
| 54 | 52 |
| 55 DISALLOW_IMPLICIT_CONSTRUCTORS(StreamTextureFactoryImpl); | 53 DISALLOW_IMPLICIT_CONSTRUCTORS(StreamTextureFactoryImpl); |
| 56 }; | 54 }; |
| 57 | 55 |
| 58 } // namespace content | 56 } // namespace content |
| 59 | 57 |
| 60 #endif // CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_IMPL_H_ | 58 #endif // CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_IMPL_H_ |
| OLD | NEW |