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

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

Issue 331723003: gpu: Remove Create/DeleteImage IPC by adding an X11_PIXMAP_BUFFER GpuMemoryBuffer type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: wip Created 6 years, 5 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_CONTROL_SERVICE_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_GPU_CONTROL_SERVICE_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_GPU_CONTROL_SERVICE_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_GPU_CONTROL_SERVICE_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "gpu/command_buffer/common/capabilities.h" 9 #include "gpu/command_buffer/common/capabilities.h"
10 #include "gpu/gpu_export.h" 10 #include "gpu/gpu_export.h"
11 #include "ui/gfx/gpu_memory_buffer.h"
12 11
13 namespace gpu { 12 namespace gpu {
14 class GpuMemoryBufferManagerInterface;
15
16 namespace gles2 { 13 namespace gles2 {
17 class QueryManager; 14 class QueryManager;
18 } 15 }
19 16
20 class GPU_EXPORT GpuControlService { 17 class GPU_EXPORT GpuControlService {
21 public: 18 public:
22 GpuControlService(GpuMemoryBufferManagerInterface* gpu_memory_buffer_manager, 19 GpuControlService(gles2::QueryManager* query_manager);
23 gles2::QueryManager* query_manager);
24 virtual ~GpuControlService(); 20 virtual ~GpuControlService();
25 21
26 void SignalQuery(uint32 query, const base::Closure& callback); 22 void SignalQuery(uint32 query, const base::Closure& callback);
27 23
28 void RegisterGpuMemoryBuffer(int32 id,
29 gfx::GpuMemoryBufferHandle buffer,
30 size_t width,
31 size_t height,
32 unsigned internalformat);
33 void UnregisterGpuMemoryBuffer(int32 id);
34
35 private: 24 private:
36 GpuMemoryBufferManagerInterface* gpu_memory_buffer_manager_;
37 gles2::QueryManager* query_manager_; 25 gles2::QueryManager* query_manager_;
38 26
39 DISALLOW_COPY_AND_ASSIGN(GpuControlService); 27 DISALLOW_COPY_AND_ASSIGN(GpuControlService);
40 }; 28 };
41 29
42 } // namespace gpu 30 } // namespace gpu
43 31
44 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_CONTROL_SERVICE_H_ 32 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_CONTROL_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698