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

Side by Side Diff: gpu/command_buffer/service/gpu_memory_buffer_manager.h

Issue 235563002: gpu: Separate GpuControlService from GpuControl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove MailboxManager Created 6 years, 7 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 | Annotate | Revision Log
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 GPU_COMMAND_BUFFER_SERVICE_GPU_MEMORY_BUFFER_MANAGER_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_GPU_MEMORY_BUFFER_MANAGER_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_GPU_MEMORY_BUFFER_MANAGER_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_GPU_MEMORY_BUFFER_MANAGER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "gpu/gpu_export.h" 9 #include "gpu/gpu_export.h"
10 #include "ui/gfx/gpu_memory_buffer.h" 10 #include "ui/gfx/gpu_memory_buffer.h"
11 11
12 namespace gpu { 12 namespace gpu {
13 13
14 class GPU_EXPORT GpuMemoryBufferManagerInterface { 14 class GPU_EXPORT GpuMemoryBufferManagerInterface {
15 public: 15 public:
16 virtual ~GpuMemoryBufferManagerInterface() {} 16 virtual ~GpuMemoryBufferManagerInterface() {}
17 17
18 virtual bool RegisterGpuMemoryBuffer(int32 id, 18 virtual void RegisterGpuMemoryBuffer(int32 id,
19 gfx::GpuMemoryBufferHandle buffer, 19 gfx::GpuMemoryBufferHandle buffer,
20 size_t width, 20 size_t width,
21 size_t height, 21 size_t height,
22 unsigned internalformat) = 0; 22 unsigned internalformat) = 0;
23 virtual void DestroyGpuMemoryBuffer(int32 id) = 0; 23 virtual void UnregisterGpuMemoryBuffer(int32 id) = 0;
24 }; 24 };
25 25
26 } // namespace gpu 26 } // namespace gpu
27 27
28 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_MEMORY_BUFFER_MANAGER_H_ 28 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_MEMORY_BUFFER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698