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

Side by Side Diff: components/mus/gles2/gpu_impl.cc

Issue 2119963002: Move mus to //services/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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 | « components/mus/gles2/gpu_impl.h ('k') | components/mus/gles2/gpu_memory_tracker.h » ('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 #include "components/mus/gles2/gpu_impl.h"
6
7 #include "components/mus/common/gpu_type_converters.h"
8 #include "components/mus/gles2/command_buffer_impl.h"
9
10 namespace mus {
11
12 GpuImpl::GpuImpl(mojo::InterfaceRequest<Gpu> request,
13 const scoped_refptr<GpuState>& state)
14 : binding_(this, std::move(request)), state_(state) {}
15
16 GpuImpl::~GpuImpl() {}
17
18 void GpuImpl::CreateOffscreenGLES2Context(
19 mojo::InterfaceRequest<mojom::CommandBuffer> request) {
20 new CommandBufferImpl(std::move(request), state_);
21 }
22
23 void GpuImpl::GetGpuInfo(const GetGpuInfoCallback& callback) {
24 callback.Run(mojom::GpuInfo::From<gpu::GPUInfo>(state_->gpu_info()));
25 }
26
27 } // namespace mus
OLDNEW
« no previous file with comments | « components/mus/gles2/gpu_impl.h ('k') | components/mus/gles2/gpu_memory_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698