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

Side by Side Diff: cc/test/test_gpu_memory_buffer_manager.h

Issue 634083002: gpu: Compositor management of GpuMemoryBuffer instances. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cc-pre-chromium-image-refactor
Patch Set: rebase Created 6 years, 2 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
« no previous file with comments | « cc/test/test_gles2_interface.cc ('k') | cc/test/test_gpu_memory_buffer_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CC_TEST_TEST_GPU_MEMORY_BUFFER_MANAGER_H_
6 #define CC_TEST_TEST_GPU_MEMORY_BUFFER_MANAGER_H_
7
8 #include "cc/resources/gpu_memory_buffer_manager.h"
9
10 namespace cc {
11
12 class TestGpuMemoryBufferManager : public GpuMemoryBufferManager {
13 public:
14 TestGpuMemoryBufferManager();
15 virtual ~TestGpuMemoryBufferManager();
16
17 // Overridden from GpuMemoryBufferManager:
18 virtual scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer(
19 const gfx::Size& size,
20 gfx::GpuMemoryBuffer::Format format,
21 gfx::GpuMemoryBuffer::Usage usage) override;
22 virtual gfx::GpuMemoryBuffer* GpuMemoryBufferFromClientBuffer(
23 ClientBuffer buffer) override;
24 };
25
26 } // namespace cc
27
28 #endif // CC_TEST_TEST_GPU_MEMORY_BUFFER_MANAGER_H_
OLDNEW
« no previous file with comments | « cc/test/test_gles2_interface.cc ('k') | cc/test/test_gpu_memory_buffer_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698