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

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

Issue 2194893002: services/ui: Revert CLs that broke Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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 | « services/ui/gles2/gl_surface_adapter.cc ('k') | services/ui/gles2/gpu_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/gles2/gpu_impl.h
diff --git a/services/ui/gles2/gpu_impl.h b/services/ui/gles2/gpu_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..612b8db4dc4b50a0ac56d16e6c4ac05b5d177919
--- /dev/null
+++ b/services/ui/gles2/gpu_impl.h
@@ -0,0 +1,39 @@
+// 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.
+
+#ifndef SERVICES_UI_GLES2_GPU_IMPL_H_
+#define SERVICES_UI_GLES2_GPU_IMPL_H_
+
+#include "base/macros.h"
+#include "base/memory/ref_counted.h"
+#include "base/threading/thread.h"
+#include "mojo/public/cpp/bindings/interface_request.h"
+#include "mojo/public/cpp/bindings/strong_binding.h"
+#include "services/ui/gles2/gpu_state.h"
+#include "services/ui/public/interfaces/command_buffer.mojom.h"
+#include "services/ui/public/interfaces/gpu.mojom.h"
+#include "ui/gfx/geometry/mojo/geometry.mojom.h"
+
+namespace ui {
+
+class GpuImpl : public mojom::Gpu {
+ public:
+ GpuImpl(mojo::InterfaceRequest<mojom::Gpu> request,
+ const scoped_refptr<GpuState>& state);
+ ~GpuImpl() override;
+
+ private:
+ void CreateOffscreenGLES2Context(mojo::InterfaceRequest<mojom::CommandBuffer>
+ command_buffer_request) override;
+ void GetGpuInfo(const GetGpuInfoCallback& callback) override;
+
+ mojo::StrongBinding<Gpu> binding_;
+ scoped_refptr<GpuState> state_;
+
+ DISALLOW_COPY_AND_ASSIGN(GpuImpl);
+};
+
+} // namespace ui
+
+#endif // SERVICES_UI_GLES2_GPU_IMPL_H_
« no previous file with comments | « services/ui/gles2/gl_surface_adapter.cc ('k') | services/ui/gles2/gpu_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698