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

Unified Diff: ui/ozone/platform/drm/gpu/drm_gpu_platform_support_inprocess.h

Issue 1285183008: Ozone integration. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: add missing license header Created 5 years, 4 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: ui/ozone/platform/drm/gpu/drm_gpu_platform_support_inprocess.h
diff --git a/ui/ozone/platform/drm/gpu/drm_gpu_platform_support_inprocess.h b/ui/ozone/platform/drm/gpu/drm_gpu_platform_support_inprocess.h
new file mode 100644
index 0000000000000000000000000000000000000000..45692e390ab0ced88518db33c78405c403942ee1
--- /dev/null
+++ b/ui/ozone/platform/drm/gpu/drm_gpu_platform_support_inprocess.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 UI_OZONE_PLATFORM_DRM_GPU_DRM_GPU_PLATFORM_SUPPORT_INPROCESS_H_
+#define UI_OZONE_PLATFORM_DRM_GPU_DRM_GPU_PLATFORM_SUPPORT_INPROCESS_H_
+
+#include "base/callback.h"
+#include "base/single_thread_task_runner.h"
+#include "ui/ozone/platform/drm/common/inprocess_messages.h"
+#include "ui/ozone/platform/drm/gpu/drm_gpu_platform_support.h"
+
+namespace ui {
+
+class DrmGpuPlatformSupportInprocess : public DrmGpuPlatformSupportDelegate {
+ public:
+ DrmGpuPlatformSupportInprocess();
+ ~DrmGpuPlatformSupportInprocess() override;
+
+ void OnChannelEstablished(
+ scoped_refptr<base::SingleThreadTaskRunner> send_runner,
+ base::Callback<void(Message*)> send_callback);
+
+ bool OnMessageReceived(const Message& message);
+ bool Send(Message* message);
+
+ void UpdateNativeDisplays(
+ const std::vector<DisplaySnapshot_Params>& displays) override;
+ void DisplayConfigured(int64_t id, bool result) override;
+
+ private:
+ DrmGpuPlatformSupport* platform_support_;
+ scoped_refptr<base::SingleThreadTaskRunner> send_runner_;
+ base::Callback<void(Message*)> send_callback_;
+};
+
+} // namespace
+
+#endif
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_gpu_platform_support.cc ('k') | ui/ozone/platform/drm/gpu/drm_gpu_platform_support_inprocess.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698