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

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

Issue 687433002: Remove mojo/shell and (most) service implementations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove mojo/gles2, disable mojo apps in component build Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/services/native_viewport/gpu_impl.h ('k') | mojo/services/native_viewport/main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/native_viewport/gpu_impl.cc
diff --git a/mojo/services/native_viewport/gpu_impl.cc b/mojo/services/native_viewport/gpu_impl.cc
deleted file mode 100644
index 7da46599a5ebaa0bfa584b914c968bf2f8404bef..0000000000000000000000000000000000000000
--- a/mojo/services/native_viewport/gpu_impl.cc
+++ /dev/null
@@ -1,43 +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/native_viewport/gpu_impl.h"
-
-#include "gpu/command_buffer/service/mailbox_manager.h"
-#include "mojo/converters/geometry/geometry_type_converters.h"
-#include "mojo/services/gles2/command_buffer_impl.h"
-#include "ui/gl/gl_share_group.h"
-
-namespace mojo {
-
-GpuImpl::GpuImpl(
- const scoped_refptr<gfx::GLShareGroup>& share_group,
- const scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager)
- : share_group_(share_group), mailbox_manager_(mailbox_manager) {
-}
-
-GpuImpl::~GpuImpl() {
-}
-
-void GpuImpl::CreateOnscreenGLES2Context(
- uint64_t native_viewport_id,
- SizePtr size,
- InterfaceRequest<CommandBuffer> command_buffer_request) {
- gfx::AcceleratedWidget widget = bit_cast<gfx::AcceleratedWidget>(
- static_cast<uintptr_t>(native_viewport_id));
- BindToRequest(new CommandBufferImpl(widget,
- size.To<gfx::Size>(),
- share_group_.get(),
- mailbox_manager_.get()),
- &command_buffer_request);
-}
-
-void GpuImpl::CreateOffscreenGLES2Context(
- InterfaceRequest<CommandBuffer> command_buffer_request) {
- BindToRequest(
- new CommandBufferImpl(share_group_.get(), mailbox_manager_.get()),
- &command_buffer_request);
-}
-
-} // namespace mojo
« no previous file with comments | « mojo/services/native_viewport/gpu_impl.h ('k') | mojo/services/native_viewport/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698