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

Side by Side Diff: content/renderer/gpu/stream_texture_host_android.h

Issue 633303002: Replace FINAL and OVERRIDE with their C++11 counterparts in content/renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 (c) 2012 The Chromium Authors. All rights reserved. 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 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_GPU_STREAM_TEXTURE_HOST_ANDROID_H_ 5 #ifndef CONTENT_RENDERER_GPU_STREAM_TEXTURE_HOST_ANDROID_H_
6 #define CONTENT_RENDERER_GPU_STREAM_TEXTURE_HOST_ANDROID_H_ 6 #define CONTENT_RENDERER_GPU_STREAM_TEXTURE_HOST_ANDROID_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "content/common/android/surface_texture_peer.h" 9 #include "content/common/android/surface_texture_peer.h"
10 #include "ipc/ipc_listener.h" 10 #include "ipc/ipc_listener.h"
(...skipping 20 matching lines...) Expand all
31 class Listener { 31 class Listener {
32 public: 32 public:
33 virtual void OnFrameAvailable() = 0; 33 virtual void OnFrameAvailable() = 0;
34 virtual void OnMatrixChanged(const float mtx[16]) = 0; 34 virtual void OnMatrixChanged(const float mtx[16]) = 0;
35 virtual ~Listener() {} 35 virtual ~Listener() {}
36 }; 36 };
37 37
38 bool BindToCurrentThread(int32 stream_id, Listener* listener); 38 bool BindToCurrentThread(int32 stream_id, Listener* listener);
39 39
40 // IPC::Channel::Listener implementation: 40 // IPC::Channel::Listener implementation:
41 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 41 virtual bool OnMessageReceived(const IPC::Message& message) override;
42 virtual void OnChannelError() OVERRIDE; 42 virtual void OnChannelError() override;
43 43
44 private: 44 private:
45 // Message handlers: 45 // Message handlers:
46 void OnFrameAvailable(); 46 void OnFrameAvailable();
47 void OnMatrixChanged(const GpuStreamTextureMsg_MatrixChanged_Params& param); 47 void OnMatrixChanged(const GpuStreamTextureMsg_MatrixChanged_Params& param);
48 48
49 int stream_id_; 49 int stream_id_;
50 Listener* listener_; 50 Listener* listener_;
51 scoped_refptr<GpuChannelHost> channel_; 51 scoped_refptr<GpuChannelHost> channel_;
52 base::WeakPtrFactory<StreamTextureHost> weak_ptr_factory_; 52 base::WeakPtrFactory<StreamTextureHost> weak_ptr_factory_;
53 53
54 DISALLOW_IMPLICIT_CONSTRUCTORS(StreamTextureHost); 54 DISALLOW_IMPLICIT_CONSTRUCTORS(StreamTextureHost);
55 }; 55 };
56 56
57 } // namespace content 57 } // namespace content
58 58
59 #endif // CONTENT_RENDERER_GPU_STREAM_TEXTURE_HOST_ANDROID_H_ 59 #endif // CONTENT_RENDERER_GPU_STREAM_TEXTURE_HOST_ANDROID_H_
OLDNEW
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.h ('k') | content/renderer/ico_image_decoder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698