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

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

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
Index: mojo/services/native_viewport/gpu_impl.h
diff --git a/mojo/services/native_viewport/gpu_impl.h b/mojo/services/native_viewport/gpu_impl.h
deleted file mode 100644
index 6b996c71520e6ac3d43046e229e7a39de2135c1a..0000000000000000000000000000000000000000
--- a/mojo/services/native_viewport/gpu_impl.h
+++ /dev/null
@@ -1,49 +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 "base/macros.h"
-#include "base/memory/ref_counted.h"
-#include "mojo/public/cpp/bindings/interface_impl.h"
-#include "mojo/public/cpp/bindings/interface_request.h"
-#include "mojo/services/public/interfaces/geometry/geometry.mojom.h"
-#include "mojo/services/public/interfaces/gpu/command_buffer.mojom.h"
-#include "mojo/services/public/interfaces/gpu/gpu.mojom.h"
-
-namespace gfx {
-class GLShareGroup;
-}
-
-namespace gpu {
-namespace gles2 {
-class MailboxManager;
-}
-}
-
-namespace mojo {
-
-class GpuImpl : public InterfaceImpl<Gpu> {
- public:
- GpuImpl(const scoped_refptr<gfx::GLShareGroup>& share_group,
- const scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager);
-
- ~GpuImpl() override;
-
- void CreateOnscreenGLES2Context(
- uint64_t native_viewport_id,
- SizePtr size,
- InterfaceRequest<CommandBuffer> command_buffer_request) override;
-
- void CreateOffscreenGLES2Context(
- InterfaceRequest<CommandBuffer> command_buffer_request) override;
-
- private:
- // We need to share these across all NativeViewport instances so that contexts
- // they create can share resources with each other via mailboxes.
- scoped_refptr<gfx::GLShareGroup> share_group_;
- scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager_;
-
- DISALLOW_COPY_AND_ASSIGN(GpuImpl);
-};
-
-} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698