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

Side by Side Diff: gpu/command_buffer/client/gpu_memory_buffer_factory.h

Issue 255713008: Change glimage to accept a type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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_CLIENT_GPU_MEMORY_FACTORY_BUFFER_H_ 5 #ifndef GPU_COMMAND_BUFFER_CLIENT_GPU_MEMORY_FACTORY_BUFFER_H_
6 #define GPU_COMMAND_BUFFER_CLIENT_GPU_MEMORY_FACTORY_BUFFER_H_ 6 #define GPU_COMMAND_BUFFER_CLIENT_GPU_MEMORY_FACTORY_BUFFER_H_
7 7
8 #include "gpu/gpu_export.h" 8 #include "gpu/gpu_export.h"
9 9
10 namespace gfx { 10 namespace gfx {
11 class GpuMemoryBuffer; 11 class GpuMemoryBuffer;
12 } 12 }
13 13
14 namespace gpu { 14 namespace gpu {
15 15
16 class GPU_EXPORT GpuMemoryBufferFactory { 16 class GPU_EXPORT GpuMemoryBufferFactory {
17 public: 17 public:
18 virtual gfx::GpuMemoryBuffer* CreateGpuMemoryBuffer( 18 virtual gfx::GpuMemoryBuffer* CreateGpuMemoryBuffer(size_t width,
19 size_t width, 19 size_t height,
20 size_t height, 20 unsigned internalformat,
21 unsigned internalformat) = 0; 21 unsigned usage) = 0;
22 22
23 protected: 23 protected:
24 virtual ~GpuMemoryBufferFactory() {} 24 virtual ~GpuMemoryBufferFactory() {}
25 }; 25 };
26 26
27 } // namespace gpu 27 } // namespace gpu
28 28
29 #endif // GPU_COMMAND_BUFFER_CLIENT_GPU_MEMORY_BUFFER_FACTORY_H_ 29 #endif // GPU_COMMAND_BUFFER_CLIENT_GPU_MEMORY_BUFFER_FACTORY_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gpu_control.h ('k') | gpu/command_buffer/client/gpu_memory_buffer_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698