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

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: include base/logging.h for DCHECK 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..0c75bdd52b7cf3647be00003a16159c0641532c1 100644
--- a/ui/gl/gpu_memory_buffer.h
+++ b/gpu/command_buffer/client/gpu_memory_buffer.h
@@ -2,15 +2,14 @@
// 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"
#include "base/memory/scoped_ptr.h"
-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 +22,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>(int, int)> Creator;
enum AccessMode {
READ_ONLY,
WRITE_ONLY,
@@ -50,6 +49,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_
« no previous file with comments | « android_webview/renderer/aw_content_renderer_client.h ('k') | gpu/command_buffer/client/gpu_memory_buffer_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698