OLD | NEW |
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_ACCELERATED_WIDGET_MAC_ACCELERATED_WIDGET_MAC_H_ | 5 #ifndef UI_ACCELERATED_WIDGET_MAC_ACCELERATED_WIDGET_MAC_H_ |
6 #define UI_ACCELERATED_WIDGET_MAC_ACCELERATED_WIDGET_MAC_H_ | 6 #define UI_ACCELERATED_WIDGET_MAC_ACCELERATED_WIDGET_MAC_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 #include <IOSurface/IOSurface.h> | 9 #include <IOSurface/IOSurface.h> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/mac/scoped_cftyperef.h" | 12 #include "base/mac/scoped_cftyperef.h" |
13 #import "base/mac/scoped_nsobject.h" | 13 #import "base/mac/scoped_nsobject.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/time/time.h" | 15 #include "base/time/time.h" |
16 #include "ui/accelerated_widget_mac/accelerated_widget_mac_export.h" | 16 #include "ui/accelerated_widget_mac/accelerated_widget_mac_export.h" |
17 #include "ui/base/cocoa/remote_layer_api.h" | 17 #include "ui/base/cocoa/remote_layer_api.h" |
18 #include "ui/gfx/geometry/rect.h" | 18 #include "ui/gfx/geometry/rect.h" |
19 #include "ui/gfx/geometry/size.h" | 19 #include "ui/gfx/geometry/size.h" |
20 #include "ui/gfx/native_widget_types.h" | 20 #include "ui/gfx/native_widget_types.h" |
21 | 21 |
22 class SkCanvas; | |
23 | |
24 namespace cc { | |
25 class SoftwareFrameData; | |
26 } | |
27 | |
28 namespace ui { | 22 namespace ui { |
29 | 23 |
30 class FullscreenLowPowerCoordinator; | 24 class FullscreenLowPowerCoordinator; |
31 | 25 |
32 // A class through which an AcceleratedWidget may be bound to draw the contents | 26 // A class through which an AcceleratedWidget may be bound to draw the contents |
33 // of an NSView. An AcceleratedWidget may be bound to multiple different views | 27 // of an NSView. An AcceleratedWidget may be bound to multiple different views |
34 // throughout its lifetime (one at a time, though). | 28 // throughout its lifetime (one at a time, though). |
35 class AcceleratedWidgetMacNSView { | 29 class AcceleratedWidgetMacNSView { |
36 public: | 30 public: |
37 virtual NSView* AcceleratedWidgetGetNSView() const = 0; | 31 virtual NSView* AcceleratedWidgetGetNSView() const = 0; |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 | 106 |
113 // The size in DIP of the last swap received from |compositor_|. | 107 // The size in DIP of the last swap received from |compositor_|. |
114 gfx::Size last_swap_size_dip_; | 108 gfx::Size last_swap_size_dip_; |
115 | 109 |
116 DISALLOW_COPY_AND_ASSIGN(AcceleratedWidgetMac); | 110 DISALLOW_COPY_AND_ASSIGN(AcceleratedWidgetMac); |
117 }; | 111 }; |
118 | 112 |
119 } // namespace ui | 113 } // namespace ui |
120 | 114 |
121 #endif // UI_ACCELERATED_WIDGET_MAC_ACCELERATED_WIDGET_MAC_H_ | 115 #endif // UI_ACCELERATED_WIDGET_MAC_ACCELERATED_WIDGET_MAC_H_ |
OLD | NEW |