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

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

Issue 106633002: GBM Ozone implementation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 6 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
« no previous file with comments | « ui/ozone/platform/dri/dri_surface.cc ('k') | ui/ozone/platform/dri/dri_surface_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_SURFACE_FACTORY_H_ 5 #ifndef UI_OZONE_PLATFORM_DRI_DRI_SURFACE_FACTORY_H_
6 #define UI_OZONE_PLATFORM_DRI_DRI_SURFACE_FACTORY_H_ 6 #define UI_OZONE_PLATFORM_DRI_DRI_SURFACE_FACTORY_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 void SetHardwareCursor(gfx::AcceleratedWidget window, 53 void SetHardwareCursor(gfx::AcceleratedWidget window,
54 const SkBitmap& image, 54 const SkBitmap& image,
55 const gfx::Point& location); 55 const gfx::Point& location);
56 56
57 void MoveHardwareCursor(gfx::AcceleratedWidget window, 57 void MoveHardwareCursor(gfx::AcceleratedWidget window,
58 const gfx::Point& location); 58 const gfx::Point& location);
59 59
60 void UnsetHardwareCursor(gfx::AcceleratedWidget window); 60 void UnsetHardwareCursor(gfx::AcceleratedWidget window);
61 61
62 private: 62 protected:
63 // Draw the last set cursor & update the cursor plane. 63 // Draw the last set cursor & update the cursor plane.
64 void ResetCursor(gfx::AcceleratedWidget w); 64 void ResetCursor(gfx::AcceleratedWidget w);
65 65
66 virtual DriSurface* CreateSurface(const gfx::Size& size); 66 virtual DriSurface* CreateSurface(const gfx::Size& size);
67 67
68 DriWrapper* drm_; // Not owned. 68 DriWrapper* drm_; // Not owned.
69 ScreenManager* screen_manager_; // Not owned. 69 ScreenManager* screen_manager_; // Not owned.
70 HardwareState state_; 70 HardwareState state_;
71 71
72 // Active outputs. 72 // Active outputs.
73 int allocated_widgets_; 73 int allocated_widgets_;
74 74
75 scoped_ptr<DriSurface> cursor_surface_; 75 scoped_ptr<DriSurface> cursor_surface_;
76 76
77 SkBitmap cursor_bitmap_; 77 SkBitmap cursor_bitmap_;
78 gfx::Point cursor_location_; 78 gfx::Point cursor_location_;
79 79
80 DISALLOW_COPY_AND_ASSIGN(DriSurfaceFactory); 80 DISALLOW_COPY_AND_ASSIGN(DriSurfaceFactory);
81 }; 81 };
82 82
83 } // namespace ui 83 } // namespace ui
84 84
85 #endif // UI_OZONE_PLATFORM_DRI_DRI_SURFACE_FACTORY_H_ 85 #endif // UI_OZONE_PLATFORM_DRI_DRI_SURFACE_FACTORY_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/dri_surface.cc ('k') | ui/ozone/platform/dri/dri_surface_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698