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

Unified Diff: components/view_manager/gles2/mojo_gpu_memory_buffer_manager.h

Issue 1181013010: Support impl-side painting in Mandoline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix presubmit warning Created 5 years, 6 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: components/view_manager/gles2/mojo_gpu_memory_buffer_manager.h
diff --git a/cc/test/test_gpu_memory_buffer_manager.h b/components/view_manager/gles2/mojo_gpu_memory_buffer_manager.h
similarity index 55%
copy from cc/test/test_gpu_memory_buffer_manager.h
copy to components/view_manager/gles2/mojo_gpu_memory_buffer_manager.h
index d084436a09ea5acd79eea8cd8d92fa2573759214..ae4df363c0f9843a31aef04a6e5c09490db03e86 100644
--- a/cc/test/test_gpu_memory_buffer_manager.h
+++ b/components/view_manager/gles2/mojo_gpu_memory_buffer_manager.h
@@ -1,33 +1,33 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
+// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CC_TEST_TEST_GPU_MEMORY_BUFFER_MANAGER_H_
-#define CC_TEST_TEST_GPU_MEMORY_BUFFER_MANAGER_H_
-
+#ifndef COMPONENTS_VIEW_MANAGER_GLES2_MOJO_GPU_MEMORY_BUFFER_MANAGER_H_
+#define COMPONENTS_VIEW_MANAGER_GLES2_MOJO_GPU_MEMORY_BUFFER_MANAGER_H_
+
#include "gpu/command_buffer/client/gpu_memory_buffer_manager.h"
-namespace cc {
-
-class TestGpuMemoryBufferManager : public gpu::GpuMemoryBufferManager {
- public:
- TestGpuMemoryBufferManager();
- ~TestGpuMemoryBufferManager() override;
-
- // Overridden from gpu::GpuMemoryBufferManager:
- scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer(
- const gfx::Size& size,
- gfx::GpuMemoryBuffer::Format format,
- gfx::GpuMemoryBuffer::Usage usage) override;
- gfx::GpuMemoryBuffer* GpuMemoryBufferFromClientBuffer(
- ClientBuffer buffer) override;
- void SetDestructionSyncPoint(gfx::GpuMemoryBuffer* buffer,
- uint32 sync_point) override;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(TestGpuMemoryBufferManager);
+namespace gles2 {
+
+class MojoGpuMemoryBufferManager : public gpu::GpuMemoryBufferManager {
+ public:
+ MojoGpuMemoryBufferManager();
+ ~MojoGpuMemoryBufferManager() override;
+
+ // Overridden from gpu::GpuMemoryBufferManager:
+ scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer(
+ const gfx::Size& size,
+ gfx::GpuMemoryBuffer::Format format,
+ gfx::GpuMemoryBuffer::Usage usage) override;
+ gfx::GpuMemoryBuffer* GpuMemoryBufferFromClientBuffer(
+ ClientBuffer buffer) override;
+ void SetDestructionSyncPoint(gfx::GpuMemoryBuffer* buffer,
+ uint32 sync_point) override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MojoGpuMemoryBufferManager);
};
-} // namespace cc
+} // namespace gles2
-#endif // CC_TEST_TEST_GPU_MEMORY_BUFFER_MANAGER_H_
+#endif // COMPONENTS_VIEW_MANAGER_GLES2_MOJO_GPU_MEMORY_BUFFER_MANAGER_H_

Powered by Google App Engine
This is Rietveld 408576698