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

Side by Side Diff: content/common/gpu/client/gpu_video_decode_accelerator_host.h

Issue 630853003: Replace OVERRIDE and FINAL with override and final in content/common/[a-s]* (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_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ 5 #ifndef CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_
6 #define CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ 6 #define CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 13 matching lines...) Expand all
24 public media::VideoDecodeAccelerator, 24 public media::VideoDecodeAccelerator,
25 public CommandBufferProxyImpl::DeletionObserver, 25 public CommandBufferProxyImpl::DeletionObserver,
26 public base::NonThreadSafe { 26 public base::NonThreadSafe {
27 public: 27 public:
28 // |this| is guaranteed not to outlive |channel| and |impl|. (See comments 28 // |this| is guaranteed not to outlive |channel| and |impl|. (See comments
29 // for |channel_| and |impl_|.) 29 // for |channel_| and |impl_|.)
30 GpuVideoDecodeAcceleratorHost(GpuChannelHost* channel, 30 GpuVideoDecodeAcceleratorHost(GpuChannelHost* channel,
31 CommandBufferProxyImpl* impl); 31 CommandBufferProxyImpl* impl);
32 32
33 // IPC::Listener implementation. 33 // IPC::Listener implementation.
34 virtual void OnChannelError() OVERRIDE; 34 virtual void OnChannelError() override;
35 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 35 virtual bool OnMessageReceived(const IPC::Message& message) override;
36 36
37 // media::VideoDecodeAccelerator implementation. 37 // media::VideoDecodeAccelerator implementation.
38 virtual bool Initialize(media::VideoCodecProfile profile, 38 virtual bool Initialize(media::VideoCodecProfile profile,
39 Client* client) OVERRIDE; 39 Client* client) override;
40 virtual void Decode(const media::BitstreamBuffer& bitstream_buffer) OVERRIDE; 40 virtual void Decode(const media::BitstreamBuffer& bitstream_buffer) override;
41 virtual void AssignPictureBuffers( 41 virtual void AssignPictureBuffers(
42 const std::vector<media::PictureBuffer>& buffers) OVERRIDE; 42 const std::vector<media::PictureBuffer>& buffers) override;
43 virtual void ReusePictureBuffer(int32 picture_buffer_id) OVERRIDE; 43 virtual void ReusePictureBuffer(int32 picture_buffer_id) override;
44 virtual void Flush() OVERRIDE; 44 virtual void Flush() override;
45 virtual void Reset() OVERRIDE; 45 virtual void Reset() override;
46 virtual void Destroy() OVERRIDE; 46 virtual void Destroy() override;
47 47
48 // CommandBufferProxyImpl::DeletionObserver implemetnation. 48 // CommandBufferProxyImpl::DeletionObserver implemetnation.
49 virtual void OnWillDeleteImpl() OVERRIDE; 49 virtual void OnWillDeleteImpl() override;
50 50
51 private: 51 private:
52 // Only Destroy() should be deleting |this|. 52 // Only Destroy() should be deleting |this|.
53 virtual ~GpuVideoDecodeAcceleratorHost(); 53 virtual ~GpuVideoDecodeAcceleratorHost();
54 54
55 // Notify |client_| of an error. Posts a task to avoid re-entrancy. 55 // Notify |client_| of an error. Posts a task to avoid re-entrancy.
56 void PostNotifyError(Error); 56 void PostNotifyError(Error);
57 57
58 void Send(IPC::Message* message); 58 void Send(IPC::Message* message);
59 59
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 92
93 // WeakPtr factory for posting tasks back to itself. 93 // WeakPtr factory for posting tasks back to itself.
94 base::WeakPtrFactory<GpuVideoDecodeAcceleratorHost> weak_this_factory_; 94 base::WeakPtrFactory<GpuVideoDecodeAcceleratorHost> weak_this_factory_;
95 95
96 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); 96 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost);
97 }; 97 };
98 98
99 } // namespace content 99 } // namespace content
100 100
101 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ 101 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698