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

Unified Diff: ui/ozone/platform/dri/dri_gpu_platform_support_host.h

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 years, 11 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/dri/dri_gpu_platform_support_host.h
diff --git a/ui/ozone/platform/dri/dri_gpu_platform_support_host.h b/ui/ozone/platform/dri/dri_gpu_platform_support_host.h
deleted file mode 100644
index 61d35f082b053f2bc37e138b8884fc2e6be964a4..0000000000000000000000000000000000000000
--- a/ui/ozone/platform/dri/dri_gpu_platform_support_host.h
+++ /dev/null
@@ -1,72 +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.
-
-#ifndef UI_OZONE_PLATFORM_DRI_DRI_GPU_PLATFORM_SUPPORT_HOST_H_
-#define UI_OZONE_PLATFORM_DRI_DRI_GPU_PLATFORM_SUPPORT_HOST_H_
-
-#include <queue>
-#include <vector>
-
-#include "base/observer_list.h"
-#include "ui/gfx/native_widget_types.h"
-#include "ui/ozone/platform/dri/hardware_cursor_delegate.h"
-#include "ui/ozone/public/gpu_platform_support_host.h"
-
-class SkBitmap;
-
-namespace gfx {
-class Point;
-}
-
-namespace ui {
-
-class ChannelObserver;
-
-class DriGpuPlatformSupportHost : public GpuPlatformSupportHost,
- public HardwareCursorDelegate,
- public IPC::Sender {
- public:
- DriGpuPlatformSupportHost();
- virtual ~DriGpuPlatformSupportHost();
-
- bool IsConnected() const;
-
- void RegisterHandler(GpuPlatformSupportHost* handler);
- void UnregisterHandler(GpuPlatformSupportHost* handler);
-
- void AddChannelObserver(ChannelObserver* observer);
- void RemoveChannelObserver(ChannelObserver* observer);
-
- // GpuPlatformSupportHost:
- virtual void OnChannelEstablished(int host_id, IPC::Sender* sender) override;
- virtual void OnChannelDestroyed(int host_id) override;
-
- // IPC::Listener:
- virtual bool OnMessageReceived(const IPC::Message& message) override;
-
- // IPC::Sender:
- virtual bool Send(IPC::Message* message) override;
-
- // HardwareCursorDelegate:
- virtual void SetHardwareCursor(gfx::AcceleratedWidget widget,
- const std::vector<SkBitmap>& bitmaps,
- const gfx::Point& location,
- int frame_delay_ms) override;
- virtual void MoveHardwareCursor(gfx::AcceleratedWidget widget,
- const gfx::Point& location) override;
-
- private:
- int host_id_;
- IPC::Sender* sender_;
- std::vector<GpuPlatformSupportHost*> handlers_;
- // If messages are sent before the channel is created, store the messages and
- // delay sending them until the channel is created. These messages are stored
- // in |queued_messaged_|.
- std::queue<IPC::Message*> queued_messages_;
- ObserverList<ChannelObserver> channel_observers_;
-};
-
-} // namespace ui
-
-#endif // UI_OZONE_GPU_DRI_GPU_PLATFORM_SUPPORT_HOST_H_
« no previous file with comments | « ui/ozone/platform/dri/dri_gpu_platform_support.cc ('k') | ui/ozone/platform/dri/dri_gpu_platform_support_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698