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

Unified Diff: mojo/services/gles2/gpu_impl.cc

Issue 769173002: Move native_viewport and gles2 service impls to //services (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/services/gles2/gpu_impl.h ('k') | mojo/services/gles2/mojo_buffer_backing.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/gles2/gpu_impl.cc
diff --git a/mojo/services/gles2/gpu_impl.cc b/mojo/services/gles2/gpu_impl.cc
deleted file mode 100644
index 13d5b7ffc0cab14ac45a8d2fc3c7cf6970701bb6..0000000000000000000000000000000000000000
--- a/mojo/services/gles2/gpu_impl.cc
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "mojo/services/gles2/gpu_impl.h"
-
-#include "gpu/command_buffer/service/mailbox_manager.h"
-#include "gpu/command_buffer/service/mailbox_manager_impl.h"
-#include "gpu/command_buffer/service/sync_point_manager.h"
-#include "mojo/converters/geometry/geometry_type_converters.h"
-#include "mojo/services/gles2/command_buffer_driver.h"
-#include "mojo/services/gles2/command_buffer_impl.h"
-#include "ui/gl/gl_share_group.h"
-#include "ui/gl/gl_surface.h"
-
-namespace mojo {
-
-GpuImpl::State::State()
- : control_thread_("gpu_command_buffer_control"),
- sync_point_manager_(new gpu::SyncPointManager),
- share_group_(new gfx::GLShareGroup),
- mailbox_manager_(new gpu::gles2::MailboxManagerImpl) {
- control_thread_.Start();
-}
-
-GpuImpl::State::~State() {
-}
-
-GpuImpl::GpuImpl(InterfaceRequest<Gpu> request,
- const scoped_refptr<State>& state)
- : binding_(this, request.Pass()), state_(state) {
-}
-
-GpuImpl::~GpuImpl() {
-}
-
-void GpuImpl::CreateOnscreenGLES2Context(
- uint64_t native_viewport_id,
- SizePtr size,
- InterfaceRequest<CommandBuffer> request,
- ViewportParameterListenerPtr listener) {
- gfx::AcceleratedWidget widget = bit_cast<gfx::AcceleratedWidget>(
- static_cast<uintptr_t>(native_viewport_id));
- new CommandBufferImpl(
- request.Pass(), listener.Pass(), state_->control_task_runner(),
- state_->sync_point_manager(),
- make_scoped_ptr(new CommandBufferDriver(
- widget, size.To<gfx::Size>(), state_->share_group(),
- state_->mailbox_manager(), state_->sync_point_manager())));
-}
-
-void GpuImpl::CreateOffscreenGLES2Context(
- InterfaceRequest<CommandBuffer> request) {
- new CommandBufferImpl(request.Pass(), ViewportParameterListenerPtr(),
- state_->control_task_runner(),
- state_->sync_point_manager(),
- make_scoped_ptr(new CommandBufferDriver(
- state_->share_group(), state_->mailbox_manager(),
- state_->sync_point_manager())));
-}
-
-} // namespace mojo
« no previous file with comments | « mojo/services/gles2/gpu_impl.h ('k') | mojo/services/gles2/mojo_buffer_backing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698