| Index: gpu/command_buffer/client/gpu_memory_buffer.h
|
| diff --git a/ui/gl/gpu_memory_buffer.h b/gpu/command_buffer/client/gpu_memory_buffer.h
|
| similarity index 84%
|
| rename from ui/gl/gpu_memory_buffer.h
|
| rename to gpu/command_buffer/client/gpu_memory_buffer.h
|
| index 9780c97104728a8c18d9767ab4416137f0d7098e..6699cebb2bf96f174418dd893e1ac1debbafe900 100644
|
| --- a/ui/gl/gpu_memory_buffer.h
|
| +++ b/gpu/command_buffer/client/gpu_memory_buffer.h
|
| @@ -2,8 +2,8 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef UI_GL_GPU_MEMORY_BUFFER_H_
|
| -#define UI_GL_GPU_MEMORY_BUFFER_H_
|
| +#ifndef GPU_COMMAND_BUFFER_CLIENT_GPU_MEMORY_BUFFER_H_
|
| +#define GPU_COMMAND_BUFFER_CLIENT_GPU_MEMORY_BUFFER_H_
|
|
|
| #include "base/basictypes.h"
|
| #include "base/callback.h"
|
| @@ -11,6 +11,9 @@
|
|
|
| namespace gfx {
|
| class Size;
|
| +}
|
| +
|
| +namespace gpu {
|
|
|
| // Interface for creating and accessing a zero-copy GPU memory buffer.
|
| // This design evolved from the generalization of GraphicBuffer API
|
| @@ -23,7 +26,7 @@ class Size;
|
| // behavior and is not allowed.
|
| class GpuMemoryBuffer {
|
| public:
|
| - typedef base::Callback<scoped_ptr<gfx::GpuMemoryBuffer>(gfx::Size)> Creator;
|
| + typedef base::Callback<scoped_ptr<GpuMemoryBuffer>(gfx::Size)> Creator;
|
| enum AccessMode {
|
| READ_ONLY,
|
| WRITE_ONLY,
|
| @@ -50,6 +53,6 @@ class GpuMemoryBuffer {
|
| virtual uint32 GetStride() = 0;
|
| };
|
|
|
| -} // namespace gfx
|
| +} // namespace gpu
|
|
|
| -#endif // UI_GL_GPU_MEMORY_BUFFER_H_
|
| +#endif // GPU_COMMAND_BUFFER_CLIENT_GPU_MEMORY_BUFFER_H_
|
|
|