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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 CC_TEST_TEST_GPU_MEMORY_BUFFER_MANAGER_H_ 5 #ifndef COMPONENTS_VIEW_MANAGER_GLES2_MOJO_GPU_MEMORY_BUFFER_MANAGER_H_
6 #define CC_TEST_TEST_GPU_MEMORY_BUFFER_MANAGER_H_ 6 #define COMPONENTS_VIEW_MANAGER_GLES2_MOJO_GPU_MEMORY_BUFFER_MANAGER_H_
7 7
8 #include "gpu/command_buffer/client/gpu_memory_buffer_manager.h" 8 #include "gpu/command_buffer/client/gpu_memory_buffer_manager.h"
9 9
10 namespace cc { 10 namespace gles2 {
11 11
12 class TestGpuMemoryBufferManager : public gpu::GpuMemoryBufferManager { 12 class MojoGpuMemoryBufferManager : public gpu::GpuMemoryBufferManager {
13 public: 13 public:
14 TestGpuMemoryBufferManager(); 14 MojoGpuMemoryBufferManager();
15 ~TestGpuMemoryBufferManager() override; 15 ~MojoGpuMemoryBufferManager() override;
16 16
17 // Overridden from gpu::GpuMemoryBufferManager: 17 // Overridden from gpu::GpuMemoryBufferManager:
18 scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( 18 scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer(
19 const gfx::Size& size, 19 const gfx::Size& size,
20 gfx::GpuMemoryBuffer::Format format, 20 gfx::GpuMemoryBuffer::Format format,
21 gfx::GpuMemoryBuffer::Usage usage) override; 21 gfx::GpuMemoryBuffer::Usage usage) override;
22 gfx::GpuMemoryBuffer* GpuMemoryBufferFromClientBuffer( 22 gfx::GpuMemoryBuffer* GpuMemoryBufferFromClientBuffer(
23 ClientBuffer buffer) override; 23 ClientBuffer buffer) override;
24 void SetDestructionSyncPoint(gfx::GpuMemoryBuffer* buffer, 24 void SetDestructionSyncPoint(gfx::GpuMemoryBuffer* buffer,
25 uint32 sync_point) override; 25 uint32 sync_point) override;
26 26
27 private: 27 private:
28 DISALLOW_COPY_AND_ASSIGN(TestGpuMemoryBufferManager); 28 DISALLOW_COPY_AND_ASSIGN(MojoGpuMemoryBufferManager);
29 }; 29 };
30 30
31 } // namespace cc 31 } // namespace gles2
32 32
33 #endif // CC_TEST_TEST_GPU_MEMORY_BUFFER_MANAGER_H_ 33 #endif // COMPONENTS_VIEW_MANAGER_GLES2_MOJO_GPU_MEMORY_BUFFER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698