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 CONTENT_BROWSER_RENDERER_HOST_COMPOSITING_IOSURFACE_MAC_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_COMPOSITING_IOSURFACE_MAC_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITING_IOSURFACE_MAC_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITING_IOSURFACE_MAC_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 | 315 |
316 // Cached pointer to IOSurfaceSupport Singleton. | 316 // Cached pointer to IOSurfaceSupport Singleton. |
317 IOSurfaceSupport* io_surface_support_; | 317 IOSurfaceSupport* io_surface_support_; |
318 | 318 |
319 // GL context, and parameters for context sharing. This may change when | 319 // GL context, and parameters for context sharing. This may change when |
320 // moving between windows, but will never be NULL. | 320 // moving between windows, but will never be NULL. |
321 scoped_refptr<CompositingIOSurfaceContext> context_; | 321 scoped_refptr<CompositingIOSurfaceContext> context_; |
322 | 322 |
323 // IOSurface data. | 323 // IOSurface data. |
324 uint64 io_surface_handle_; | 324 uint64 io_surface_handle_; |
325 base::mac::ScopedCFTypeRef<CFTypeRef> io_surface_; | 325 base::ScopedCFTypeRef<CFTypeRef> io_surface_; |
326 | 326 |
327 // The width and height of the io surface. | 327 // The width and height of the io surface. |
328 gfx::Size pixel_io_surface_size_; // In pixels. | 328 gfx::Size pixel_io_surface_size_; // In pixels. |
329 gfx::Size dip_io_surface_size_; // In view / density independent pixels. | 329 gfx::Size dip_io_surface_size_; // In view / density independent pixels. |
330 float scale_factor_; | 330 float scale_factor_; |
331 | 331 |
332 // The "live" OpenGL texture referring to this IOSurfaceRef. Note | 332 // The "live" OpenGL texture referring to this IOSurfaceRef. Note |
333 // that per the CGLTexImageIOSurface2D API we do not need to | 333 // that per the CGLTexImageIOSurface2D API we do not need to |
334 // explicitly update this texture's contents once created. All we | 334 // explicitly update this texture's contents once created. All we |
335 // need to do is ensure it is re-bound before attempting to draw | 335 // need to do is ensure it is re-bound before attempting to draw |
(...skipping 30 matching lines...) Expand all Loading... |
366 | 366 |
367 // Error saved by GetAndSaveGLError | 367 // Error saved by GetAndSaveGLError |
368 GLint gl_error_; | 368 GLint gl_error_; |
369 | 369 |
370 ui::LatencyInfo latency_info_; | 370 ui::LatencyInfo latency_info_; |
371 }; | 371 }; |
372 | 372 |
373 } // namespace content | 373 } // namespace content |
374 | 374 |
375 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITING_IOSURFACE_MAC_H_ | 375 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITING_IOSURFACE_MAC_H_ |
OLD | NEW |