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

Side by Side Diff: gpu/command_buffer/common/gpu_control.h

Issue 20017005: gpu: Refactor GpuMemoryBuffer framework for multi-process support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 4 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 (c) 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_COMMON_GPU_CONTROL_H_
6 #define GPU_COMMAND_BUFFER_COMMON_GPU_CONTROL_H_
7
8 #include "gpu/gpu_export.h"
9
10 namespace gfx {
11 class GpuMemoryBuffer;
12 }
13
14 namespace gpu {
15
16 // Common interface for GpuControl implementations.
17 class GPU_EXPORT GpuControl {
18 public:
19 GpuControl() {}
20 virtual ~GpuControl() {}
21
22 // Create a gpu memory buffer of the given dimensions and format. Returns
23 // its ID or -1 on error.
24 virtual gfx::GpuMemoryBuffer* CreateGpuMemoryBuffer(
25 size_t width,
26 size_t height,
27 unsigned internalformat,
28 int32* id) = 0;
29
30 // Destroy a gpu memory buffer. The ID must be positive.
31 virtual void DestroyGpuMemoryBuffer(int32 id) = 0;
32
33 private:
34 DISALLOW_COPY_AND_ASSIGN(GpuControl);
35 };
36
37 } // namespace gpu
38
39 #endif // GPU_COMMAND_BUFFER_COMMON_GPU_CONTROL_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_format.h ('k') | gpu/command_buffer/service/context_group.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698