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

Unified Diff: gpu/command_buffer/client/gpu_memory_buffer.h

Issue 13870010: Move GpuMemoryBuffer interface from ui/gl to gpu/command_buffer/client (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fw-declare gfx::Size Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698