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

Unified Diff: ui/ozone/platform/dri/dri_gpu_platform_support.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
« no previous file with comments | « ui/ozone/platform/dri/dri_cursor.cc ('k') | ui/ozone/platform/dri/dri_gpu_platform_support.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/dri_gpu_platform_support.h
diff --git a/ui/ozone/platform/dri/dri_gpu_platform_support.h b/ui/ozone/platform/dri/dri_gpu_platform_support.h
deleted file mode 100644
index 259edb731e3d0a78205ea4835fb033d6c56cbfe4..0000000000000000000000000000000000000000
--- a/ui/ozone/platform/dri/dri_gpu_platform_support.h
+++ /dev/null
@@ -1,79 +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_H_
-#define UI_OZONE_PLATFORM_DRI_DRI_GPU_PLATFORM_SUPPORT_H_
-
-#include "base/containers/scoped_ptr_hash_map.h"
-#include "base/memory/scoped_ptr.h"
-#include "base/memory/scoped_vector.h"
-#include "ui/gfx/native_widget_types.h"
-#include "ui/ozone/public/gpu_platform_support.h"
-
-class SkBitmap;
-
-namespace gfx {
-class Point;
-class Rect;
-}
-
-namespace ui {
-
-class DriSurfaceFactory;
-class DriWindowDelegate;
-class DriWindowDelegateManager;
-class NativeDisplayDelegateDri;
-class ScreenManager;
-
-struct DisplayMode_Params;
-struct DisplaySnapshot_Params;
-
-class DriGpuPlatformSupport : public GpuPlatformSupport {
- public:
- DriGpuPlatformSupport(DriSurfaceFactory* dri,
- DriWindowDelegateManager* window_manager,
- ScreenManager* screen_manager,
- scoped_ptr<NativeDisplayDelegateDri> ndd);
- virtual ~DriGpuPlatformSupport();
-
- void AddHandler(scoped_ptr<GpuPlatformSupport> handler);
-
- // GpuPlatformSupport:
- virtual void OnChannelEstablished(IPC::Sender* sender) override;
-
- // IPC::Listener:
- virtual bool OnMessageReceived(const IPC::Message& message) override;
-
- private:
- void OnCreateWindowDelegate(gfx::AcceleratedWidget widget);
- void OnDestroyWindowDelegate(gfx::AcceleratedWidget widget);
- void OnWindowBoundsChanged(gfx::AcceleratedWidget widget,
- const gfx::Rect& bounds);
- void OnCursorSet(gfx::AcceleratedWidget widget,
- const std::vector<SkBitmap>& bitmaps,
- const gfx::Point& location,
- int frame_delay_ms);
- void OnCursorMove(gfx::AcceleratedWidget widget, const gfx::Point& location);
-
- // Display related IPC handlers.
- void OnForceDPMSOn();
- void OnRefreshNativeDisplays(
- const std::vector<DisplaySnapshot_Params>& cached_displays);
- void OnConfigureNativeDisplay(int64_t id,
- const DisplayMode_Params& mode,
- const gfx::Point& origin);
- void OnDisableNativeDisplay(int64_t id);
-
- IPC::Sender* sender_; // Not owned.
- DriSurfaceFactory* dri_; // Not owned.
- DriWindowDelegateManager* window_manager_; // Not owned.
- ScreenManager* screen_manager_; // Not owned.
-
- scoped_ptr<NativeDisplayDelegateDri> ndd_;
- ScopedVector<GpuPlatformSupport> handlers_;
-};
-
-} // namespace ui
-
-#endif // UI_OZONE_PLATFORM_DRI_DRI_GPU_PLATFORM_SUPPORT_H_
« no previous file with comments | « ui/ozone/platform/dri/dri_cursor.cc ('k') | ui/ozone/platform/dri/dri_gpu_platform_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698