OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_GL_GL_SURFACE_H_ | 5 #ifndef UI_GL_GL_SURFACE_H_ |
6 #define UI_GL_GL_SURFACE_H_ | 6 #define UI_GL_GL_SURFACE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
177 const gfx::RectF& contents_rect, | 177 const gfx::RectF& contents_rect, |
178 float opacity, | 178 float opacity, |
179 unsigned background_color, | 179 unsigned background_color, |
180 unsigned edge_aa_mask, | 180 unsigned edge_aa_mask, |
181 const gfx::RectF& rect, | 181 const gfx::RectF& rect, |
182 bool is_clipped, | 182 bool is_clipped, |
183 const gfx::RectF& clip_rect, | 183 const gfx::RectF& clip_rect, |
184 const gfx::Transform& transform, | 184 const gfx::Transform& transform, |
185 int sorting_content_id, | 185 int sorting_content_id, |
186 unsigned filter); | 186 unsigned filter); |
187 struct CALayerInUseQuery { | |
188 unsigned texture; | |
189 GLImage* image; | |
piman
2016/06/14 00:58:56
I think you want to take a scoped_refptr<GLImage>
erikchen
2016/06/14 01:47:51
ImageTransportSurfaceOverlayMac holds on to the un
| |
190 }; | |
191 virtual void ScheduleCALayerInUseQuery( | |
192 std::vector<CALayerInUseQuery> queries); | |
187 | 193 |
188 virtual bool IsSurfaceless() const; | 194 virtual bool IsSurfaceless() const; |
189 | 195 |
190 virtual bool FlipsVertically() const; | 196 virtual bool FlipsVertically() const; |
191 | 197 |
192 // Returns true if SwapBuffers or PostSubBuffers causes a flip, such that | 198 // Returns true if SwapBuffers or PostSubBuffers causes a flip, such that |
193 // the next buffer may be 2 frames old. | 199 // the next buffer may be 2 frames old. |
194 virtual bool BuffersFlipped() const; | 200 virtual bool BuffersFlipped() const; |
195 | 201 |
196 static GLSurface* GetCurrent(); | 202 static GLSurface* GetCurrent(); |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
273 | 279 |
274 // Wraps GLSurface in scoped_refptr and tries to initializes it. Returns a | 280 // Wraps GLSurface in scoped_refptr and tries to initializes it. Returns a |
275 // scoped_refptr containing the initialized GLSurface or nullptr if | 281 // scoped_refptr containing the initialized GLSurface or nullptr if |
276 // initialization fails. | 282 // initialization fails. |
277 GL_EXPORT scoped_refptr<GLSurface> InitializeGLSurface( | 283 GL_EXPORT scoped_refptr<GLSurface> InitializeGLSurface( |
278 scoped_refptr<GLSurface> surface); | 284 scoped_refptr<GLSurface> surface); |
279 | 285 |
280 } // namespace gl | 286 } // namespace gl |
281 | 287 |
282 #endif // UI_GL_GL_SURFACE_H_ | 288 #endif // UI_GL_GL_SURFACE_H_ |
OLD | NEW |