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

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: rebase 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef GPU_COMMAND_BUFFER_SERVICE_GPU_CONTROL_SERVICE_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_GPU_CONTROL_SERVICE_H_
7
8 #include "base/callback.h"
9 #include "gpu/command_buffer/common/capabilities.h"
10 #include "gpu/gpu_export.h"
11 #include "ui/gfx/gpu_memory_buffer.h"
12
13 namespace gpu {
14 class GpuMemoryBufferManagerInterface;
15
16 namespace gles2 {
17 class QueryManager;
18 }
19
20 class GPU_EXPORT GpuControlService {
21 public:
22 GpuControlService(GpuMemoryBufferManagerInterface* gpu_memory_buffer_manager,
23 gles2::QueryManager* query_manager);
24 virtual ~GpuControlService();
25
26 void SignalQuery(uint32 query, const base::Closure& callback);
27
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:
36 GpuMemoryBufferManagerInterface* gpu_memory_buffer_manager_;
37 gles2::QueryManager* query_manager_;
38
39 DISALLOW_COPY_AND_ASSIGN(GpuControlService);
40 };
41
42 } // namespace gpu
43
44 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_CONTROL_SERVICE_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc ('k') | gpu/command_buffer/service/gpu_control_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698