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

Side by Side Diff: content/common/gpu/client/gpu_memory_buffer_impl_io_surface.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_IO_SURFACE_H_ 5 #ifndef CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_IMPL_IO_SURFACE_H_
6 #define CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_IMPL_IO_SURFACE_H_ 6 #define CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_IMPL_IO_SURFACE_H_
7 7
8 #include <IOSurface/IOSurfaceAPI.h> 8 #include <IOSurface/IOSurfaceAPI.h>
9 9
10 #include "base/mac/scoped_cftyperef.h" 10 #include "base/mac/scoped_cftyperef.h"
(...skipping 21 matching lines...) Expand all
32 const gfx::Size& size, 32 const gfx::Size& size,
33 unsigned internalformat, 33 unsigned internalformat,
34 const DestructionCallback& callback); 34 const DestructionCallback& callback);
35 35
36 static bool IsFormatSupported(unsigned internalformat); 36 static bool IsFormatSupported(unsigned internalformat);
37 static bool IsUsageSupported(unsigned usage); 37 static bool IsUsageSupported(unsigned usage);
38 static bool IsConfigurationSupported(unsigned internalformat, unsigned usage); 38 static bool IsConfigurationSupported(unsigned internalformat, unsigned usage);
39 static uint32 PixelFormat(unsigned internalformat); 39 static uint32 PixelFormat(unsigned internalformat);
40 40
41 // Overridden from gfx::GpuMemoryBuffer: 41 // Overridden from gfx::GpuMemoryBuffer:
42 virtual void* Map() OVERRIDE; 42 virtual void* Map() override;
43 virtual void Unmap() OVERRIDE; 43 virtual void Unmap() override;
44 virtual uint32 GetStride() const OVERRIDE; 44 virtual uint32 GetStride() const override;
45 virtual gfx::GpuMemoryBufferHandle GetHandle() const OVERRIDE; 45 virtual gfx::GpuMemoryBufferHandle GetHandle() const override;
46 46
47 private: 47 private:
48 GpuMemoryBufferImplIOSurface(const gfx::Size& size, 48 GpuMemoryBufferImplIOSurface(const gfx::Size& size,
49 unsigned internalformat, 49 unsigned internalformat,
50 const DestructionCallback& callback, 50 const DestructionCallback& callback,
51 IOSurfaceRef io_surface); 51 IOSurfaceRef io_surface);
52 virtual ~GpuMemoryBufferImplIOSurface(); 52 virtual ~GpuMemoryBufferImplIOSurface();
53 53
54 base::ScopedCFTypeRef<IOSurfaceRef> io_surface_; 54 base::ScopedCFTypeRef<IOSurfaceRef> io_surface_;
55 55
56 DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferImplIOSurface); 56 DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferImplIOSurface);
57 }; 57 };
58 58
59 } // namespace content 59 } // namespace content
60 60
61 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_IMPL_IO_SURFACE_H_ 61 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_IMPL_IO_SURFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698