OLD | NEW |
1 // Copyright (c) 2011 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 #include <dlfcn.h> | 5 #include <dlfcn.h> |
6 | 6 |
7 #include "base/memory/singleton.h" | 7 #include "base/memory/singleton.h" |
8 #include "ui/gfx/surface/io_surface_support_mac.h" | 8 #include "ui/surface/io_surface_support_mac.h" |
9 | 9 |
10 typedef CFTypeRef (*IOSurfaceCreateProcPtr)(CFDictionaryRef properties); | 10 typedef CFTypeRef (*IOSurfaceCreateProcPtr)(CFDictionaryRef properties); |
11 typedef uint32 (*IOSurfaceGetIDProcPtr)(CFTypeRef io_surface); | 11 typedef uint32 (*IOSurfaceGetIDProcPtr)(CFTypeRef io_surface); |
12 typedef CFTypeRef (*IOSurfaceLookupProcPtr)(uint32 io_surface_id); | 12 typedef CFTypeRef (*IOSurfaceLookupProcPtr)(uint32 io_surface_id); |
13 typedef mach_port_t (*IOSurfaceCreateMachPortProcPtr)(CFTypeRef io_surface); | 13 typedef mach_port_t (*IOSurfaceCreateMachPortProcPtr)(CFTypeRef io_surface); |
14 typedef CFTypeRef (*IOSurfaceLookupFromMachPortProcPtr)(mach_port_t port); | 14 typedef CFTypeRef (*IOSurfaceLookupFromMachPortProcPtr)(mach_port_t port); |
15 typedef size_t (*IOSurfaceGetWidthPtr)(CFTypeRef io_surface); | 15 typedef size_t (*IOSurfaceGetWidthPtr)(CFTypeRef io_surface); |
16 typedef size_t (*IOSurfaceGetHeightPtr)(CFTypeRef io_surface); | 16 typedef size_t (*IOSurfaceGetHeightPtr)(CFTypeRef io_surface); |
17 typedef CGLError (*CGLTexImageIOSurface2DProcPtr)(CGLContextObj ctx, | 17 typedef CGLError (*CGLTexImageIOSurface2DProcPtr)(CGLContextObj ctx, |
18 GLenum target, | 18 GLenum target, |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 IOSurfaceSupport* IOSurfaceSupport::Initialize() { | 261 IOSurfaceSupport* IOSurfaceSupport::Initialize() { |
262 return IOSurfaceSupportImpl::GetInstance(); | 262 return IOSurfaceSupportImpl::GetInstance(); |
263 } | 263 } |
264 | 264 |
265 IOSurfaceSupport::IOSurfaceSupport() { | 265 IOSurfaceSupport::IOSurfaceSupport() { |
266 } | 266 } |
267 | 267 |
268 IOSurfaceSupport::~IOSurfaceSupport() { | 268 IOSurfaceSupport::~IOSurfaceSupport() { |
269 } | 269 } |
270 | 270 |
OLD | NEW |