| 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/IOSurfaceAPI.h> | 8 #include <IOSurface/IOSurfaceAPI.h> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 void AcknowledgeAcceleratedFrame(); | 111 void AcknowledgeAcceleratedFrame(); |
| 112 | 112 |
| 113 // Remove a layer from the heirarchy and destroy it. Because the accelerated | 113 // Remove a layer from the heirarchy and destroy it. Because the accelerated |
| 114 // layer types may be replaced by a layer of the same type, the layer to | 114 // layer types may be replaced by a layer of the same type, the layer to |
| 115 // destroy is parameterized, and, if it is the current layer, the current | 115 // destroy is parameterized, and, if it is the current layer, the current |
| 116 // layer is reset. | 116 // layer is reset. |
| 117 void DestroyCAContextLayer( | 117 void DestroyCAContextLayer( |
| 118 base::scoped_nsobject<CALayerHost> ca_context_layer); | 118 base::scoped_nsobject<CALayerHost> ca_context_layer); |
| 119 void DestroyIOSurfaceLayer( | 119 void DestroyIOSurfaceLayer( |
| 120 base::scoped_nsobject<IOSurfaceLayer> io_surface_layer); | 120 base::scoped_nsobject<IOSurfaceLayer> io_surface_layer); |
| 121 void DestroyIOSurfaceNSGLSurface(); |
| 121 void DestroySoftwareLayer(); | 122 void DestroySoftwareLayer(); |
| 122 | 123 |
| 123 // The AcceleratedWidgetMacNSView that is using this as its internals. | 124 // The AcceleratedWidgetMacNSView that is using this as its internals. |
| 124 AcceleratedWidgetMacNSView* view_; | 125 AcceleratedWidgetMacNSView* view_; |
| 125 | 126 |
| 126 // A phony NSView handle used to identify this. | 127 // A phony NSView handle used to identify this. |
| 127 gfx::AcceleratedWidget native_widget_; | 128 gfx::AcceleratedWidget native_widget_; |
| 128 | 129 |
| 129 // A flipped layer, which acts as the parent of the compositing and software | 130 // A flipped layer, which acts as the parent of the compositing and software |
| 130 // layers. This layer is flipped so that the we don't need to recompute the | 131 // layers. This layer is flipped so that the we don't need to recompute the |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 const base::Closure& drawn_callback, | 176 const base::Closure& drawn_callback, |
| 176 bool* disable_throttling, int* renderer_id); | 177 bool* disable_throttling, int* renderer_id); |
| 177 | 178 |
| 178 ACCELERATED_WIDGET_MAC_EXPORT | 179 ACCELERATED_WIDGET_MAC_EXPORT |
| 179 void AcceleratedWidgetMacGotSoftwareFrame( | 180 void AcceleratedWidgetMacGotSoftwareFrame( |
| 180 gfx::AcceleratedWidget widget, float scale_factor, SkCanvas* canvas); | 181 gfx::AcceleratedWidget widget, float scale_factor, SkCanvas* canvas); |
| 181 | 182 |
| 182 } // namespace ui | 183 } // namespace ui |
| 183 | 184 |
| 184 #endif // UI_ACCELERATED_WIDGET_MAC_ACCELERATED_WIDGET_MAC_H_ | 185 #endif // UI_ACCELERATED_WIDGET_MAC_ACCELERATED_WIDGET_MAC_H_ |
| OLD | NEW |