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

Side by Side Diff: ui/accelerated_widget_mac/accelerated_widget_mac.h

Issue 1164363005: Mac: Only allow NSOpenGLContext displaying on the main display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add GPU switch Created 5 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
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_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
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
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_
OLDNEW
« no previous file with comments | « content/common/gpu/image_transport_surface_fbo_mac.mm ('k') | ui/accelerated_widget_mac/accelerated_widget_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698