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

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

Issue 469343003: [Ozone-GBM] Pumb DriWindowDelegate throughout the platform (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unittest && rebase Created 6 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 unified diff | Download patch | Annotate | Revision Log
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_GPU_PLATFORM_SUPPORT_GBM_H_ 5 #ifndef UI_OZONE_PLATFORM_DRI_GPU_PLATFORM_SUPPORT_GBM_H_
6 #define UI_OZONE_PLATFORM_DRI_GPU_PLATFORM_SUPPORT_GBM_H_ 6 #define UI_OZONE_PLATFORM_DRI_GPU_PLATFORM_SUPPORT_GBM_H_
7 7
8 #include "base/containers/scoped_ptr_hash_map.h" 8 #include "base/containers/scoped_ptr_hash_map.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 private: 43 private:
44 void OnCreateWindowDelegate(gfx::AcceleratedWidget widget); 44 void OnCreateWindowDelegate(gfx::AcceleratedWidget widget);
45 void OnDestroyWindowDelegate(gfx::AcceleratedWidget widget); 45 void OnDestroyWindowDelegate(gfx::AcceleratedWidget widget);
46 void OnWindowBoundsChanged(gfx::AcceleratedWidget widget, 46 void OnWindowBoundsChanged(gfx::AcceleratedWidget widget,
47 const gfx::Rect& bounds); 47 const gfx::Rect& bounds);
48 void OnCursorSet(gfx::AcceleratedWidget widget, 48 void OnCursorSet(gfx::AcceleratedWidget widget,
49 const SkBitmap& bitmap, 49 const SkBitmap& bitmap,
50 const gfx::Point& location); 50 const gfx::Point& location);
51 void OnCursorMove(gfx::AcceleratedWidget widget, const gfx::Point& location); 51 void OnCursorMove(gfx::AcceleratedWidget widget, const gfx::Point& location);
52 52
53 typedef base::ScopedPtrHashMap<gfx::AcceleratedWidget, DriWindowDelegate>
54 WidgetToWindowDelegateMap;
55
56 IPC::Sender* sender_; 53 IPC::Sender* sender_;
57 DriSurfaceFactory* dri_; 54 DriSurfaceFactory* dri_;
58 DriWindowManager* window_manager_; 55 DriWindowManager* window_manager_;
59 ScreenManager* screen_manager_; 56 ScreenManager* screen_manager_;
60 ScopedVector<GpuPlatformSupport> handlers_; 57 ScopedVector<GpuPlatformSupport> handlers_;
61 WidgetToWindowDelegateMap window_delegate_owner_;
62 }; 58 };
63 59
64 } // namespace ui 60 } // namespace ui
65 61
66 #endif // UI_OZONE_PLATFORM_DRI_GPU_PLATFORM_SUPPORT_GBM_H_ 62 #endif // UI_OZONE_PLATFORM_DRI_GPU_PLATFORM_SUPPORT_GBM_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/gbm_surfaceless.cc ('k') | ui/ozone/platform/dri/gpu_platform_support_gbm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698