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

Side by Side Diff: content/browser/gpu/gpu_memory_buffer_factory_host_impl.h

Issue 633843002: Replacing the OVERRIDE with override and FINAL with final in content/browser/[dom_storage|gamepad|… (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
« no previous file with comments | « content/browser/gpu/gpu_ipc_browsertests.cc ('k') | content/browser/gpu/gpu_process_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_BROWSER_GPU_GPU_MEMORY_BUFFER_FACTORY_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_GPU_GPU_MEMORY_BUFFER_FACTORY_HOST_IMPL_H_
6 #define CONTENT_BROWSER_GPU_GPU_MEMORY_BUFFER_FACTORY_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_GPU_GPU_MEMORY_BUFFER_FACTORY_HOST_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "content/common/gpu/client/gpu_memory_buffer_factory_host.h" 10 #include "content/common/gpu/client/gpu_memory_buffer_factory_host.h"
11 11
12 namespace content { 12 namespace content {
13 class GpuMemoryBufferImpl; 13 class GpuMemoryBufferImpl;
14 14
15 class CONTENT_EXPORT GpuMemoryBufferFactoryHostImpl 15 class CONTENT_EXPORT GpuMemoryBufferFactoryHostImpl
16 : public GpuMemoryBufferFactoryHost { 16 : public GpuMemoryBufferFactoryHost {
17 public: 17 public:
18 GpuMemoryBufferFactoryHostImpl(); 18 GpuMemoryBufferFactoryHostImpl();
19 virtual ~GpuMemoryBufferFactoryHostImpl(); 19 virtual ~GpuMemoryBufferFactoryHostImpl();
20 20
21 // Overridden from GpuMemoryBufferFactoryHost: 21 // Overridden from GpuMemoryBufferFactoryHost:
22 virtual void CreateGpuMemoryBuffer( 22 virtual void CreateGpuMemoryBuffer(
23 const gfx::GpuMemoryBufferHandle& handle, 23 const gfx::GpuMemoryBufferHandle& handle,
24 const gfx::Size& size, 24 const gfx::Size& size,
25 unsigned internalformat, 25 unsigned internalformat,
26 unsigned usage, 26 unsigned usage,
27 const CreateGpuMemoryBufferCallback& callback) OVERRIDE; 27 const CreateGpuMemoryBufferCallback& callback) override;
28 virtual void DestroyGpuMemoryBuffer(const gfx::GpuMemoryBufferHandle& handle, 28 virtual void DestroyGpuMemoryBuffer(const gfx::GpuMemoryBufferHandle& handle,
29 int32 sync_point) OVERRIDE; 29 int32 sync_point) override;
30 30
31 void set_gpu_host_id(int gpu_host_id) { gpu_host_id_ = gpu_host_id; } 31 void set_gpu_host_id(int gpu_host_id) { gpu_host_id_ = gpu_host_id; }
32 32
33 private: 33 private:
34 void OnGpuMemoryBufferCreated(uint32 request_id, 34 void OnGpuMemoryBufferCreated(uint32 request_id,
35 const gfx::GpuMemoryBufferHandle& handle); 35 const gfx::GpuMemoryBufferHandle& handle);
36 36
37 int gpu_host_id_; 37 int gpu_host_id_;
38 uint32 next_create_gpu_memory_buffer_request_id_; 38 uint32 next_create_gpu_memory_buffer_request_id_;
39 typedef std::map<uint32, CreateGpuMemoryBufferCallback> 39 typedef std::map<uint32, CreateGpuMemoryBufferCallback>
40 CreateGpuMemoryBufferCallbackMap; 40 CreateGpuMemoryBufferCallbackMap;
41 CreateGpuMemoryBufferCallbackMap create_gpu_memory_buffer_requests_; 41 CreateGpuMemoryBufferCallbackMap create_gpu_memory_buffer_requests_;
42 42
43 DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferFactoryHostImpl); 43 DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferFactoryHostImpl);
44 }; 44 };
45 45
46 } // namespace content 46 } // namespace content
47 47
48 #endif // CONTENT_BROWSER_GPU_GPU_MEMORY_BUFFER_FACTORY_HOST_IMPL_H_ 48 #endif // CONTENT_BROWSER_GPU_GPU_MEMORY_BUFFER_FACTORY_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_ipc_browsertests.cc ('k') | content/browser/gpu/gpu_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698