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

Side by Side Diff: content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.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 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_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_IMPL_SHARED_MEMORY_H_ 5 #ifndef CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_IMPL_SHARED_MEMORY_H_
6 #define CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_IMPL_SHARED_MEMORY_H_ 6 #define CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_IMPL_SHARED_MEMORY_H_
7 7
8 #include "content/common/gpu/client/gpu_memory_buffer_impl.h" 8 #include "content/common/gpu/client/gpu_memory_buffer_impl.h"
9 9
10 namespace content { 10 namespace content {
(...skipping 17 matching lines...) Expand all
28 unsigned internalformat, 28 unsigned internalformat,
29 const DestructionCallback& callback); 29 const DestructionCallback& callback);
30 30
31 static bool IsLayoutSupported(const gfx::Size& size, unsigned internalformat); 31 static bool IsLayoutSupported(const gfx::Size& size, unsigned internalformat);
32 static bool IsUsageSupported(unsigned usage); 32 static bool IsUsageSupported(unsigned usage);
33 static bool IsConfigurationSupported(const gfx::Size& size, 33 static bool IsConfigurationSupported(const gfx::Size& size,
34 unsigned internalformat, 34 unsigned internalformat,
35 unsigned usage); 35 unsigned usage);
36 36
37 // Overridden from gfx::GpuMemoryBuffer: 37 // Overridden from gfx::GpuMemoryBuffer:
38 virtual void* Map() OVERRIDE; 38 virtual void* Map() override;
39 virtual void Unmap() OVERRIDE; 39 virtual void Unmap() override;
40 virtual uint32 GetStride() const OVERRIDE; 40 virtual uint32 GetStride() const override;
41 virtual gfx::GpuMemoryBufferHandle GetHandle() const OVERRIDE; 41 virtual gfx::GpuMemoryBufferHandle GetHandle() const override;
42 42
43 private: 43 private:
44 GpuMemoryBufferImplSharedMemory(const gfx::Size& size, 44 GpuMemoryBufferImplSharedMemory(const gfx::Size& size,
45 unsigned internalformat, 45 unsigned internalformat,
46 const DestructionCallback& callback, 46 const DestructionCallback& callback,
47 scoped_ptr<base::SharedMemory> shared_memory); 47 scoped_ptr<base::SharedMemory> shared_memory);
48 virtual ~GpuMemoryBufferImplSharedMemory(); 48 virtual ~GpuMemoryBufferImplSharedMemory();
49 49
50 scoped_ptr<base::SharedMemory> shared_memory_; 50 scoped_ptr<base::SharedMemory> shared_memory_;
51 51
52 DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferImplSharedMemory); 52 DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferImplSharedMemory);
53 }; 53 };
54 54
55 } // namespace content 55 } // namespace content
56 56
57 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_IMPL_SHARED_MEMORY_H_ 57 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_IMPL_SHARED_MEMORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698