Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(755)

Side by Side Diff: content/renderer/media/android/stream_texture_factory_impl.h

Issue 1547073003: Switch to standard integer types in content/renderer/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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>
9
10 #include "base/macros.h"
8 #include "content/renderer/media/android/stream_texture_factory.h" 11 #include "content/renderer/media/android/stream_texture_factory.h"
9 12
10 namespace cc { 13 namespace cc {
11 class ContextProvider; 14 class ContextProvider;
12 } 15 }
13 16
14 namespace gpu { 17 namespace gpu {
15 namespace gles2 { 18 namespace gles2 {
16 class GLES2Interface; 19 class GLES2Interface;
17 } // namespace gles2 20 } // namespace gles2
18 } // namespace gpu 21 } // namespace gpu
19 22
20 namespace content { 23 namespace content {
21 24
22 class ContextProviderCommandBuffer; 25 class ContextProviderCommandBuffer;
23 class GpuChannelHost; 26 class GpuChannelHost;
24 27
25 class StreamTextureFactoryImpl : public StreamTextureFactory { 28 class StreamTextureFactoryImpl : public StreamTextureFactory {
26 public: 29 public:
27 static scoped_refptr<StreamTextureFactoryImpl> Create( 30 static scoped_refptr<StreamTextureFactoryImpl> Create(
28 const scoped_refptr<ContextProviderCommandBuffer>& context_provider, 31 const scoped_refptr<ContextProviderCommandBuffer>& context_provider,
29 GpuChannelHost* channel); 32 GpuChannelHost* channel);
30 33
31 // StreamTextureFactory implementation. 34 // StreamTextureFactory implementation.
32 StreamTextureProxy* CreateProxy() override; 35 StreamTextureProxy* CreateProxy() override;
33 void EstablishPeer(int32 stream_id, int player_id, int frame_id) override; 36 void EstablishPeer(int32_t stream_id, int player_id, int frame_id) override;
34 unsigned CreateStreamTexture(unsigned texture_target, 37 unsigned CreateStreamTexture(unsigned texture_target,
35 unsigned* texture_id, 38 unsigned* texture_id,
36 gpu::Mailbox* texture_mailbox) override; 39 gpu::Mailbox* texture_mailbox) override;
37 void SetStreamTextureSize(int32 texture_id, const gfx::Size& size) override; 40 void SetStreamTextureSize(int32_t texture_id, const gfx::Size& size) override;
38 gpu::gles2::GLES2Interface* ContextGL() override; 41 gpu::gles2::GLES2Interface* ContextGL() override;
39 void AddObserver(StreamTextureFactoryContextObserver* obs) override; 42 void AddObserver(StreamTextureFactoryContextObserver* obs) override;
40 void RemoveObserver(StreamTextureFactoryContextObserver* obs) override; 43 void RemoveObserver(StreamTextureFactoryContextObserver* obs) override;
41 44
42 private: 45 private:
43 friend class base::RefCounted<StreamTextureFactoryImpl>; 46 friend class base::RefCounted<StreamTextureFactoryImpl>;
44 StreamTextureFactoryImpl( 47 StreamTextureFactoryImpl(
45 const scoped_refptr<ContextProviderCommandBuffer>& context_provider, 48 const scoped_refptr<ContextProviderCommandBuffer>& context_provider,
46 GpuChannelHost* channel); 49 GpuChannelHost* channel);
47 ~StreamTextureFactoryImpl() override; 50 ~StreamTextureFactoryImpl() override;
48 51
49 scoped_refptr<content::ContextProviderCommandBuffer> context_provider_; 52 scoped_refptr<content::ContextProviderCommandBuffer> context_provider_;
50 scoped_refptr<GpuChannelHost> channel_; 53 scoped_refptr<GpuChannelHost> channel_;
51 54
52 DISALLOW_IMPLICIT_CONSTRUCTORS(StreamTextureFactoryImpl); 55 DISALLOW_IMPLICIT_CONSTRUCTORS(StreamTextureFactoryImpl);
53 }; 56 };
54 57
55 } // namespace content 58 } // namespace content
56 59
57 #endif // CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_IMPL_H_ 60 #endif // CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/media/android/stream_texture_factory.h ('k') | content/renderer/media/android/stream_texture_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698