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

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

Issue 981583005: [Ozone-Dri] Merge the DriWindowDelegate with the implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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_window_delegate.cc ('k') | ui/ozone/platform/dri/dri_window_delegate_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/dri_window_delegate_impl.h
diff --git a/ui/ozone/platform/dri/dri_window_delegate_impl.h b/ui/ozone/platform/dri/dri_window_delegate_impl.h
deleted file mode 100644
index 317a00ad5e1672e99917ab4507357f27276d7249..0000000000000000000000000000000000000000
--- a/ui/ozone/platform/dri/dri_window_delegate_impl.h
+++ /dev/null
@@ -1,88 +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_WINDOW_DELEGATE_IMPL_H_
-#define UI_OZONE_PLATFORM_DRI_DRI_WINDOW_DELEGATE_IMPL_H_
-
-#include "base/timer/timer.h"
-#include "ui/gfx/geometry/point.h"
-#include "ui/gfx/geometry/rect.h"
-#include "ui/gfx/native_widget_types.h"
-#include "ui/ozone/ozone_export.h"
-#include "ui/ozone/platform/dri/display_change_observer.h"
-#include "ui/ozone/platform/dri/dri_window_delegate.h"
-
-namespace ui {
-
-class DriBuffer;
-class DrmDeviceManager;
-class HardwareDisplayController;
-class ScreenManager;
-
-class OZONE_EXPORT DriWindowDelegateImpl : public DriWindowDelegate,
- public DisplayChangeObserver {
- public:
- DriWindowDelegateImpl(gfx::AcceleratedWidget widget,
- DrmDeviceManager* device_manager,
- ScreenManager* screen_manager);
- ~DriWindowDelegateImpl() override;
-
- // DriWindowDelegate:
- void Initialize() override;
- void Shutdown() override;
- gfx::AcceleratedWidget GetAcceleratedWidget() override;
- HardwareDisplayController* GetController() override;
- void OnBoundsChanged(const gfx::Rect& bounds) override;
- void SetCursor(const std::vector<SkBitmap>& bitmaps,
- const gfx::Point& location,
- int frame_delay_ms) override;
- void SetCursorWithoutAnimations(const std::vector<SkBitmap>& bitmaps,
- const gfx::Point& location) override;
- void MoveCursor(const gfx::Point& location) override;
-
- // DisplayChangeObserver:
- void OnDisplayChanged(HardwareDisplayController* controller) override;
- void OnDisplayRemoved(HardwareDisplayController* controller) override;
-
- private:
- // Draw the last set cursor & update the cursor plane.
- void ResetCursor(bool bitmap_only);
-
- // Draw next frame in an animated cursor.
- void OnCursorAnimationTimeout();
-
- void UpdateWidgetToDrmDeviceMapping();
-
- // When |controller_| changes this is called to reallocate the cursor buffers
- // since the allocation DRM device may have changed.
- void UpdateCursorBuffers();
-
- gfx::AcceleratedWidget widget_;
-
- DrmDeviceManager* device_manager_; // Not owned.
- ScreenManager* screen_manager_; // Not owned.
-
- // The current bounds of the window.
- gfx::Rect bounds_;
-
- // The controller associated with the current window. This may be nullptr if
- // the window isn't over an active display.
- HardwareDisplayController* controller_;
-
- base::RepeatingTimer<DriWindowDelegateImpl> cursor_timer_;
-
- scoped_refptr<DriBuffer> cursor_buffers_[2];
- int cursor_frontbuffer_;
-
- std::vector<SkBitmap> cursor_bitmaps_;
- gfx::Point cursor_location_;
- int cursor_frame_;
- int cursor_frame_delay_ms_;
-
- DISALLOW_COPY_AND_ASSIGN(DriWindowDelegateImpl);
-};
-
-} // namespace ui
-
-#endif // UI_OZONE_PLATFORM_DRI_DRI_WINDOW_DELEGATE_IMPL_H_
« no previous file with comments | « ui/ozone/platform/dri/dri_window_delegate.cc ('k') | ui/ozone/platform/dri/dri_window_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698