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

Side by Side Diff: gpu/ipc/service/image_transport_surface_overlay_mac.h

Issue 2629633003: Refactor GL bindings so there is no global GLApi or DriverGL. (Closed)
Patch Set: rebase Created 3 years, 10 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 GPU_IPC_SERVICE_IMAGE_TRANSPORT_SURFACE_OVERLAY_MAC_H_ 5 #ifndef GPU_IPC_SERVICE_IMAGE_TRANSPORT_SURFACE_OVERLAY_MAC_H_
6 #define GPU_IPC_SERVICE_IMAGE_TRANSPORT_SURFACE_OVERLAY_MAC_H_ 6 #define GPU_IPC_SERVICE_IMAGE_TRANSPORT_SURFACE_OVERLAY_MAC_H_
7 7
8 #include <list> 8 #include <list>
9 #include <memory> 9 #include <memory>
10 #include <vector> 10 #include <vector>
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 base::scoped_nsobject<CAContext> ca_context_; 85 base::scoped_nsobject<CAContext> ca_context_;
86 base::scoped_nsobject<CAContext> fullscreen_low_power_ca_context_; 86 base::scoped_nsobject<CAContext> fullscreen_low_power_ca_context_;
87 std::unique_ptr<ui::CALayerTreeCoordinator> ca_layer_tree_coordinator_; 87 std::unique_ptr<ui::CALayerTreeCoordinator> ca_layer_tree_coordinator_;
88 88
89 gfx::Size pixel_size_; 89 gfx::Size pixel_size_;
90 float scale_factor_; 90 float scale_factor_;
91 91
92 std::vector<CALayerInUseQuery> ca_layer_in_use_queries_; 92 std::vector<CALayerInUseQuery> ca_layer_in_use_queries_;
93 93
94 // A GLFence marking the end of the previous frame. Must only be accessed 94 // A GLFence marking the end of the previous frame. Must only be accessed
95 // while in a ScopedSetGLToRealGLApi, and while the associated 95 // while the associated |previous_frame_context_| is bound.
96 // |previous_frame_context_| is bound.
97 std::unique_ptr<gl::GLFence> previous_frame_fence_; 96 std::unique_ptr<gl::GLFence> previous_frame_fence_;
98 base::ScopedTypeRef<CGLContextObj> fence_context_obj_; 97 base::ScopedTypeRef<CGLContextObj> fence_context_obj_;
99 98
100 // The renderer ID that all contexts made current to this surface should be 99 // The renderer ID that all contexts made current to this surface should be
101 // targeting. 100 // targeting.
102 GLint gl_renderer_id_; 101 GLint gl_renderer_id_;
103 }; 102 };
104 103
105 } // namespace gpu 104 } // namespace gpu
106 105
107 #endif // GPU_IPC_SERVICE_IMAGE_TRANSPORT_SURFACE_OVERLAY_MAC_H_ 106 #endif // GPU_IPC_SERVICE_IMAGE_TRANSPORT_SURFACE_OVERLAY_MAC_H_
OLDNEW
« no previous file with comments | « gpu/ipc/service/image_transport_surface_mac.mm ('k') | gpu/ipc/service/image_transport_surface_overlay_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698