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

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

Issue 1412093006: components: Add Exosphere component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove some ifdefs Created 5 years, 1 month 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 | « components/exo/test/exo_test_helper.h ('k') | components/exo/test/run_all_unittests.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 2015 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 #include "components/exo/test/exo_test_helper.h"
6
7 #include "gpu/command_buffer/client/gpu_memory_buffer_manager.h"
8 #include "ui/aura/env.h"
9 #include "ui/compositor/compositor.h"
10
11 namespace exo {
12 namespace test {
13
14 ////////////////////////////////////////////////////////////////////////////////
15 // ExoTestHelper, public:
16
17 ExoTestHelper::ExoTestHelper() {}
18
19 ExoTestHelper::~ExoTestHelper() {}
20
21 scoped_ptr<gfx::GpuMemoryBuffer> ExoTestHelper::CreateGpuMemoryBuffer(
22 const gfx::Size& size) {
23 return aura::Env::GetInstance()
24 ->context_factory()
25 ->GetGpuMemoryBufferManager()
26 ->AllocateGpuMemoryBuffer(size, gfx::BufferFormat::RGBA_8888,
27 gfx::BufferUsage::GPU_READ);
28 }
29
30 } // namespace test
31 } // namespace exo
OLDNEW
« no previous file with comments | « components/exo/test/exo_test_helper.h ('k') | components/exo/test/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698