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 #include <IOSurface/IOSurface.h> | 8 #include <IOSurface/IOSurface.h> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/mac/scoped_cftyperef.h" | 11 #include "base/mac/scoped_cftyperef.h" |
12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
13 #include "ui/accelerated_widget_mac/accelerated_widget_mac_export.h" | 13 #include "ui/accelerated_widget_mac/accelerated_widget_mac_export.h" |
14 #include "ui/accelerated_widget_mac/surface_handle_types.h" | 14 #include "ui/base/cocoa/remote_layer_api.h" |
15 #include "ui/gfx/geometry/rect.h" | 15 #include "ui/gfx/geometry/rect.h" |
16 #include "ui/gfx/geometry/size.h" | 16 #include "ui/gfx/geometry/size.h" |
17 #include "ui/gfx/native_widget_types.h" | 17 #include "ui/gfx/native_widget_types.h" |
18 | 18 |
19 #if defined(__OBJC__) | 19 #if defined(__OBJC__) |
20 #import <Cocoa/Cocoa.h> | 20 #import <Cocoa/Cocoa.h> |
21 #import "base/mac/scoped_nsobject.h" | 21 #import "base/mac/scoped_nsobject.h" |
22 #include "ui/base/cocoa/remote_layer_api.h" | |
23 #endif // __OBJC__ | 22 #endif // __OBJC__ |
24 | 23 |
25 class SkCanvas; | 24 class SkCanvas; |
26 | 25 |
27 namespace cc { | 26 namespace cc { |
28 class SoftwareFrameData; | 27 class SoftwareFrameData; |
29 } | 28 } |
30 | 29 |
31 namespace ui { | 30 namespace ui { |
32 | 31 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 CAContextID ca_context_id, | 127 CAContextID ca_context_id, |
129 base::ScopedCFTypeRef<IOSurfaceRef> io_surface, | 128 base::ScopedCFTypeRef<IOSurfaceRef> io_surface, |
130 const gfx::Size& pixel_size, | 129 const gfx::Size& pixel_size, |
131 float scale_factor, | 130 float scale_factor, |
132 base::TimeTicks* vsync_timebase, | 131 base::TimeTicks* vsync_timebase, |
133 base::TimeDelta* vsync_interval); | 132 base::TimeDelta* vsync_interval); |
134 | 133 |
135 } // namespace ui | 134 } // namespace ui |
136 | 135 |
137 #endif // UI_ACCELERATED_WIDGET_MAC_ACCELERATED_WIDGET_MAC_H_ | 136 #endif // UI_ACCELERATED_WIDGET_MAC_ACCELERATED_WIDGET_MAC_H_ |
OLD | NEW |