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

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

Issue 667943003: Standardize usage of virtual/override/final in content/browser/ (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_BROWSER_GPU_BROWSER_GPU_MEMORY_BUFFER_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_GPU_BROWSER_GPU_MEMORY_BUFFER_MANAGER_H_
6 #define CONTENT_BROWSER_GPU_BROWSER_GPU_MEMORY_BUFFER_MANAGER_H_ 6 #define CONTENT_BROWSER_GPU_BROWSER_GPU_MEMORY_BUFFER_MANAGER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "cc/resources/gpu_memory_buffer_manager.h" 9 #include "cc/resources/gpu_memory_buffer_manager.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 11
12 namespace content { 12 namespace content {
13 class GpuMemoryBufferImpl; 13 class GpuMemoryBufferImpl;
14 14
15 class CONTENT_EXPORT BrowserGpuMemoryBufferManager 15 class CONTENT_EXPORT BrowserGpuMemoryBufferManager
16 : public cc::GpuMemoryBufferManager { 16 : public cc::GpuMemoryBufferManager {
17 public: 17 public:
18 typedef base::Callback<void(const gfx::GpuMemoryBufferHandle& handle)> 18 typedef base::Callback<void(const gfx::GpuMemoryBufferHandle& handle)>
19 AllocationCallback; 19 AllocationCallback;
20 20
21 explicit BrowserGpuMemoryBufferManager(int gpu_client_id); 21 explicit BrowserGpuMemoryBufferManager(int gpu_client_id);
22 virtual ~BrowserGpuMemoryBufferManager(); 22 ~BrowserGpuMemoryBufferManager() override;
23 23
24 static BrowserGpuMemoryBufferManager* current(); 24 static BrowserGpuMemoryBufferManager* current();
25 25
26 // Overridden from cc::GpuMemoryBufferManager: 26 // Overridden from cc::GpuMemoryBufferManager:
27 virtual scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( 27 scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer(
28 const gfx::Size& size, 28 const gfx::Size& size,
29 gfx::GpuMemoryBuffer::Format format, 29 gfx::GpuMemoryBuffer::Format format,
30 gfx::GpuMemoryBuffer::Usage usage) override; 30 gfx::GpuMemoryBuffer::Usage usage) override;
31 virtual gfx::GpuMemoryBuffer* GpuMemoryBufferFromClientBuffer( 31 gfx::GpuMemoryBuffer* GpuMemoryBufferFromClientBuffer(
32 ClientBuffer buffer) override; 32 ClientBuffer buffer) override;
33 33
34 void AllocateGpuMemoryBufferForChildProcess( 34 void AllocateGpuMemoryBufferForChildProcess(
35 const gfx::Size& size, 35 const gfx::Size& size,
36 gfx::GpuMemoryBuffer::Format format, 36 gfx::GpuMemoryBuffer::Format format,
37 gfx::GpuMemoryBuffer::Usage usage, 37 gfx::GpuMemoryBuffer::Usage usage,
38 base::ProcessHandle child_process_handle, 38 base::ProcessHandle child_process_handle,
39 int child_client_id, 39 int child_client_id,
40 const AllocationCallback& callback); 40 const AllocationCallback& callback);
41 void ChildProcessDeletedGpuMemoryBuffer( 41 void ChildProcessDeletedGpuMemoryBuffer(
(...skipping 10 matching lines...) Expand all
52 static void GpuMemoryBufferCreatedOnIO( 52 static void GpuMemoryBufferCreatedOnIO(
53 AllocateGpuMemoryBufferRequest* request, 53 AllocateGpuMemoryBufferRequest* request,
54 scoped_ptr<GpuMemoryBufferImpl> buffer); 54 scoped_ptr<GpuMemoryBufferImpl> buffer);
55 55
56 int gpu_client_id_; 56 int gpu_client_id_;
57 }; 57 };
58 58
59 } // namespace content 59 } // namespace content
60 60
61 #endif // CONTENT_BROWSER_GPU_BROWSER_GPU_MEMORY_BUFFER_MANAGER_H_ 61 #endif // CONTENT_BROWSER_GPU_BROWSER_GPU_MEMORY_BUFFER_MANAGER_H_
OLDNEW
« no previous file with comments | « content/browser/gpu/browser_gpu_channel_host_factory.h ('k') | content/browser/gpu/gpu_data_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698