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

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

Issue 893333004: Update {virtual,override,final} to follow C++11 style. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix formatting Created 5 years, 10 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_SYNCHRONOUS_IMPL_H _ 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_SYNCHRONOUS_IMPL_H _
6 #define CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_SYNCHRONOUS_IMPL_H _ 6 #define CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_SYNCHRONOUS_IMPL_H _
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 29 matching lines...) Expand all
40 virtual ~ContextProvider() {} 40 virtual ~ContextProvider() {}
41 }; 41 };
42 42
43 typedef base::Callback<scoped_refptr<ContextProvider>(void)> 43 typedef base::Callback<scoped_refptr<ContextProvider>(void)>
44 CreateContextProviderCallback; 44 CreateContextProviderCallback;
45 45
46 static scoped_refptr<StreamTextureFactorySynchronousImpl> Create( 46 static scoped_refptr<StreamTextureFactorySynchronousImpl> Create(
47 const CreateContextProviderCallback& try_create_callback, 47 const CreateContextProviderCallback& try_create_callback,
48 int frame_id); 48 int frame_id);
49 49
50 virtual StreamTextureProxy* CreateProxy() override; 50 StreamTextureProxy* CreateProxy() override;
51 virtual void EstablishPeer(int32 stream_id, int player_id) override; 51 void EstablishPeer(int32 stream_id, int player_id) override;
52 virtual unsigned CreateStreamTexture(unsigned texture_target, 52 unsigned CreateStreamTexture(unsigned texture_target,
53 unsigned* texture_id, 53 unsigned* texture_id,
54 gpu::Mailbox* texture_mailbox) override; 54 gpu::Mailbox* texture_mailbox) override;
55 virtual void SetStreamTextureSize(int32 stream_id, 55 void SetStreamTextureSize(int32 stream_id, const gfx::Size& size) override;
56 const gfx::Size& size) override; 56 gpu::gles2::GLES2Interface* ContextGL() override;
57 virtual gpu::gles2::GLES2Interface* ContextGL() override; 57 void AddObserver(StreamTextureFactoryContextObserver* obs) override;
58 virtual void AddObserver(StreamTextureFactoryContextObserver* obs) override; 58 void RemoveObserver(StreamTextureFactoryContextObserver* obs) override;
59 virtual void RemoveObserver(
60 StreamTextureFactoryContextObserver* obs) override;
61 59
62 private: 60 private:
63 friend class base::RefCounted<StreamTextureFactorySynchronousImpl>; 61 friend class base::RefCounted<StreamTextureFactorySynchronousImpl>;
64 StreamTextureFactorySynchronousImpl( 62 StreamTextureFactorySynchronousImpl(
65 const CreateContextProviderCallback& try_create_callback, 63 const CreateContextProviderCallback& try_create_callback,
66 int frame_id); 64 int frame_id);
67 virtual ~StreamTextureFactorySynchronousImpl(); 65 ~StreamTextureFactorySynchronousImpl() override;
68 66
69 CreateContextProviderCallback create_context_provider_callback_; 67 CreateContextProviderCallback create_context_provider_callback_;
70 scoped_refptr<ContextProvider> context_provider_; 68 scoped_refptr<ContextProvider> context_provider_;
71 int frame_id_; 69 int frame_id_;
72 StreamTextureFactoryContextObserver* observer_; 70 StreamTextureFactoryContextObserver* observer_;
73 71
74 DISALLOW_IMPLICIT_CONSTRUCTORS(StreamTextureFactorySynchronousImpl); 72 DISALLOW_IMPLICIT_CONSTRUCTORS(StreamTextureFactorySynchronousImpl);
75 }; 73 };
76 74
77 } // namespace content 75 } // namespace content
78 76
79 #endif // CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_SYNCHRONOUS_IMP L_H_ 77 #endif // CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_SYNCHRONOUS_IMP L_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698