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

Side by Side Diff: components/exo/test/exo_test_helper.cc

Issue 2526683002: gpu: Rename AllocateGpuMemoryBuffer to CreateGpuMemoryBuffer. (Closed)
Patch Set: . Created 4 years 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 2015 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 #include "components/exo/test/exo_test_helper.h" 5 #include "components/exo/test/exo_test_helper.h"
6 6
7 #include "gpu/command_buffer/client/gpu_memory_buffer_manager.h" 7 #include "gpu/command_buffer/client/gpu_memory_buffer_manager.h"
8 #include "ui/aura/env.h" 8 #include "ui/aura/env.h"
9 #include "ui/compositor/compositor.h" 9 #include "ui/compositor/compositor.h"
10 10
11 namespace exo { 11 namespace exo {
12 namespace test { 12 namespace test {
13 13
14 //////////////////////////////////////////////////////////////////////////////// 14 ////////////////////////////////////////////////////////////////////////////////
15 // ExoTestHelper, public: 15 // ExoTestHelper, public:
16 16
17 ExoTestHelper::ExoTestHelper() {} 17 ExoTestHelper::ExoTestHelper() {}
18 18
19 ExoTestHelper::~ExoTestHelper() {} 19 ExoTestHelper::~ExoTestHelper() {}
20 20
21 std::unique_ptr<gfx::GpuMemoryBuffer> ExoTestHelper::CreateGpuMemoryBuffer( 21 std::unique_ptr<gfx::GpuMemoryBuffer> ExoTestHelper::CreateGpuMemoryBuffer(
22 const gfx::Size& size) { 22 const gfx::Size& size) {
23 return aura::Env::GetInstance() 23 return aura::Env::GetInstance()
24 ->context_factory() 24 ->context_factory()
25 ->GetGpuMemoryBufferManager() 25 ->GetGpuMemoryBufferManager()
26 ->AllocateGpuMemoryBuffer(size, gfx::BufferFormat::RGBA_8888, 26 ->CreateGpuMemoryBuffer(size, gfx::BufferFormat::RGBA_8888,
27 gfx::BufferUsage::GPU_READ, 27 gfx::BufferUsage::GPU_READ,
28 gpu::kNullSurfaceHandle); 28 gpu::kNullSurfaceHandle);
29 } 29 }
30 30
31 } // namespace test 31 } // namespace test
32 } // namespace exo 32 } // namespace exo
OLDNEW
« no previous file with comments | « components/display_compositor/buffer_queue_unittest.cc ('k') | content/browser/gpu/browser_gpu_memory_buffer_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698