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

Side by Side Diff: ui/ozone/platform/dri/dri_window.h

Issue 883783002: [Ozone-DRI] Assume window IPC arrives before surface IPC (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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_OZONE_PLATFORM_DRI_DRI_WINDOW_H_ 5 #ifndef UI_OZONE_PLATFORM_DRI_DRI_WINDOW_H_
6 #define UI_OZONE_PLATFORM_DRI_DRI_WINDOW_H_ 6 #define UI_OZONE_PLATFORM_DRI_DRI_WINDOW_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "ui/display/types/display_snapshot.h" 9 #include "ui/display/types/display_snapshot.h"
10 #include "ui/events/platform/platform_event_dispatcher.h" 10 #include "ui/events/platform/platform_event_dispatcher.h"
11 #include "ui/gfx/geometry/rect.h" 11 #include "ui/gfx/geometry/rect.h"
12 #include "ui/gfx/native_widget_types.h" 12 #include "ui/gfx/native_widget_types.h"
13 #include "ui/ozone/platform/dri/channel_observer.h" 13 #include "ui/ozone/platform/dri/channel_observer.h"
14 #include "ui/platform_window/platform_window.h" 14 #include "ui/platform_window/platform_window.h"
15 15
16 namespace ui { 16 namespace ui {
17 17
18 class DisplayManager; 18 class DisplayManager;
19 class DriCursor; 19 class DriCursor;
20 class DriWindowDelegate; 20 class DriWindowDelegate;
21 class DriWindowManager; 21 class DriWindowManager;
22 class EventFactoryEvdev; 22 class EventFactoryEvdev;
23 class DriGpuPlatformSupportHost; 23 class DriGpuPlatformSupportHost;
24 24
25 // Implementation of the platform window. This object and its handle |widget_|
26 // uniquely identify a window. Since the DRI/GBM platform is split into 2
27 // pieces (Browser process and GPU process), internally we need to make sure the
28 // state is synchronized between the 2 processes.
29 //
30 // |widget_| is used in both processes to uniquely identify the window. This
31 // means that any state on the browser side needs to be propagated to the GPU.
32 // State propagation needs to happen before the state change is acknowledged to
33 // |delegate_| as |delegate_| is responsible for initializing the surface
34 // associated with the window (the surface is created on the GPU process).
25 class DriWindow : public PlatformWindow, 35 class DriWindow : public PlatformWindow,
26 public PlatformEventDispatcher, 36 public PlatformEventDispatcher,
27 public ChannelObserver { 37 public ChannelObserver {
28 public: 38 public:
29 DriWindow(PlatformWindowDelegate* delegate, 39 DriWindow(PlatformWindowDelegate* delegate,
30 const gfx::Rect& bounds, 40 const gfx::Rect& bounds,
31 DriGpuPlatformSupportHost* sender, 41 DriGpuPlatformSupportHost* sender,
32 EventFactoryEvdev* event_factory, 42 EventFactoryEvdev* event_factory,
33 DriCursor* cursor, 43 DriCursor* cursor,
34 DriWindowManager* window_manager, 44 DriWindowManager* window_manager,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 84
75 gfx::Rect bounds_; 85 gfx::Rect bounds_;
76 gfx::AcceleratedWidget widget_; 86 gfx::AcceleratedWidget widget_;
77 87
78 DISALLOW_COPY_AND_ASSIGN(DriWindow); 88 DISALLOW_COPY_AND_ASSIGN(DriWindow);
79 }; 89 };
80 90
81 } // namespace ui 91 } // namespace ui
82 92
83 #endif // UI_OZONE_PLATFORM_DRI_DRI_WINDOW_H_ 93 #endif // UI_OZONE_PLATFORM_DRI_DRI_WINDOW_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/dri_gpu_platform_support.cc ('k') | ui/ozone/platform/dri/dri_window_delegate_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698