Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / components / mus / gles2 / gpu_impl.cc
blobb8c3e958314b63952fdd7f52b4d1bceb33eb05e9
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.
5 #include "components/mus/gles2/gpu_impl.h"
7 #include "components/mus/gles2/command_buffer_driver.h"
8 #include "components/mus/gles2/command_buffer_impl.h"
10 namespace mus {
12 GpuImpl::GpuImpl(mojo::InterfaceRequest<Gpu> request,
13 const scoped_refptr<GpuState>& state)
14 : binding_(this, request.Pass()), state_(state) {}
16 GpuImpl::~GpuImpl() {}
18 void GpuImpl::CreateOffscreenGLES2Context(
19 mojo::InterfaceRequest<mojo::CommandBuffer> request) {
20 new CommandBufferImpl(request.Pass(), state_,
21 make_scoped_ptr(new CommandBufferDriver(state_)));
24 } // namespace mus