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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 gl::GLImage* image, | 163 gl::GLImage* image, |
164 const Rect& bounds_rect, | 164 const Rect& bounds_rect, |
165 const RectF& crop_rect); | 165 const RectF& crop_rect); |
166 | 166 |
167 // Schedule a CALayer to be shown at swap time. | 167 // Schedule a CALayer to be shown at swap time. |
168 // All arguments correspond to their CALayer properties. | 168 // All arguments correspond to their CALayer properties. |
169 virtual bool ScheduleCALayer(gl::GLImage* contents_image, | 169 virtual bool ScheduleCALayer(gl::GLImage* contents_image, |
170 const RectF& contents_rect, | 170 const RectF& contents_rect, |
171 float opacity, | 171 float opacity, |
172 unsigned background_color, | 172 unsigned background_color, |
173 const SizeF& size, | 173 unsigned edge_aa_mask, |
| 174 const RectF& bounds_rect, |
| 175 bool is_clipped, |
| 176 const RectF& clip_rect, |
174 const Transform& transform); | 177 const Transform& transform); |
175 | 178 |
176 virtual bool IsSurfaceless() const; | 179 virtual bool IsSurfaceless() const; |
177 | 180 |
178 // Create a GL surface that renders directly to a view. | 181 // Create a GL surface that renders directly to a view. |
179 static scoped_refptr<GLSurface> CreateViewGLSurface( | 182 static scoped_refptr<GLSurface> CreateViewGLSurface( |
180 gfx::AcceleratedWidget window); | 183 gfx::AcceleratedWidget window); |
181 | 184 |
182 #if defined(USE_OZONE) | 185 #if defined(USE_OZONE) |
183 // Create a GL surface that renders directly into a window with surfaceless | 186 // Create a GL surface that renders directly into a window with surfaceless |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 | 270 |
268 private: | 271 private: |
269 scoped_refptr<GLSurface> surface_; | 272 scoped_refptr<GLSurface> surface_; |
270 | 273 |
271 DISALLOW_COPY_AND_ASSIGN(GLSurfaceAdapter); | 274 DISALLOW_COPY_AND_ASSIGN(GLSurfaceAdapter); |
272 }; | 275 }; |
273 | 276 |
274 } // namespace gfx | 277 } // namespace gfx |
275 | 278 |
276 #endif // UI_GL_GL_SURFACE_H_ | 279 #endif // UI_GL_GL_SURFACE_H_ |
OLD | NEW |