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

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

Issue 734273002: Cleanse mojo/services/gles2 of InterfaceImpl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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/gles2/gpu_impl.h
diff --git a/mojo/services/gles2/gpu_impl.h b/mojo/services/gles2/gpu_impl.h
index 6b996c71520e6ac3d43046e229e7a39de2135c1a..36306f125fb12b83d4276140cfa69aa103701ba8 100644
--- a/mojo/services/gles2/gpu_impl.h
+++ b/mojo/services/gles2/gpu_impl.h
@@ -4,8 +4,8 @@
#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/public/cpp/bindings/strong_binding.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"
@@ -22,9 +22,10 @@ class MailboxManager;
namespace mojo {
-class GpuImpl : public InterfaceImpl<Gpu> {
+class GpuImpl : public Gpu {
public:
- GpuImpl(const scoped_refptr<gfx::GLShareGroup>& share_group,
+ GpuImpl(ScopedMessagePipeHandle handle,
+ const scoped_refptr<gfx::GLShareGroup>& share_group,
const scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager);
~GpuImpl() override;
@@ -43,6 +44,8 @@ class GpuImpl : public InterfaceImpl<Gpu> {
scoped_refptr<gfx::GLShareGroup> share_group_;
scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager_;
+ StrongBinding<Gpu> binding_;
+
DISALLOW_COPY_AND_ASSIGN(GpuImpl);
};

Powered by Google App Engine
This is Rietveld 408576698