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

Side by Side Diff: ui/gl/io_surface_support_mac.h

Issue 100053005: Allow AllocateGpuMemoryBuffer to be called from multiple threads. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | ui/gl/io_surface_support_mac.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_IO_SURFACE_SUPPORT_MAC_H_ 5 #ifndef UI_GL_IO_SURFACE_SUPPORT_MAC_H_
6 #define UI_GL_IO_SURFACE_SUPPORT_MAC_H_ 6 #define UI_GL_IO_SURFACE_SUPPORT_MAC_H_
7 7
8 #include <CoreFoundation/CoreFoundation.h> 8 #include <CoreFoundation/CoreFoundation.h>
9 #include <CoreVideo/CoreVideo.h> 9 #include <CoreVideo/CoreVideo.h>
10 #include <mach/mach.h> 10 #include <mach/mach.h>
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 virtual size_t IOSurfaceGetBytesPerRow(CFTypeRef io_surface) = 0; 53 virtual size_t IOSurfaceGetBytesPerRow(CFTypeRef io_surface) = 0;
54 virtual void* IOSurfaceGetBaseAddress(CFTypeRef io_surface) = 0; 54 virtual void* IOSurfaceGetBaseAddress(CFTypeRef io_surface) = 0;
55 55
56 virtual IOReturn IOSurfaceLock(CFTypeRef io_surface, 56 virtual IOReturn IOSurfaceLock(CFTypeRef io_surface,
57 uint32 options, 57 uint32 options,
58 uint32* seed) = 0; 58 uint32* seed) = 0;
59 virtual IOReturn IOSurfaceUnlock(CFTypeRef io_surface, 59 virtual IOReturn IOSurfaceUnlock(CFTypeRef io_surface,
60 uint32 options, 60 uint32 options,
61 uint32* seed) = 0; 61 uint32* seed) = 0;
62 62
63 virtual void IOSurfaceDecrementUseCount(CFTypeRef io_surface) = 0;
64 virtual void IOSurfaceIncrementUseCount(CFTypeRef io_surface) = 0;
65 virtual Boolean IOSurfaceIsInUse(CFTypeRef io_surface) = 0;
66
63 virtual CGLError CGLTexImageIOSurface2D(CGLContextObj ctx, 67 virtual CGLError CGLTexImageIOSurface2D(CGLContextObj ctx,
64 GLenum target, 68 GLenum target,
65 GLenum internal_format, 69 GLenum internal_format,
66 GLsizei width, 70 GLsizei width,
67 GLsizei height, 71 GLsizei height,
68 GLenum format, 72 GLenum format,
69 GLenum type, 73 GLenum type,
70 CFTypeRef io_surface, 74 CFTypeRef io_surface,
71 GLuint plane) = 0; 75 GLuint plane) = 0;
72 76
73 virtual CFTypeRef CVPixelBufferGetIOSurface( 77 virtual CFTypeRef CVPixelBufferGetIOSurface(
74 CVPixelBufferRef pixel_buffer) = 0; 78 CVPixelBufferRef pixel_buffer) = 0;
75 79
76 protected: 80 protected:
77 IOSurfaceSupport(); 81 IOSurfaceSupport();
78 virtual ~IOSurfaceSupport(); 82 virtual ~IOSurfaceSupport();
79 83
80 DISALLOW_COPY_AND_ASSIGN(IOSurfaceSupport); 84 DISALLOW_COPY_AND_ASSIGN(IOSurfaceSupport);
81 }; 85 };
82 86
83 #endif // UI_GL_IO_SURFACE_SUPPORT_MAC_H_ 87 #endif // UI_GL_IO_SURFACE_SUPPORT_MAC_H_
OLDNEW
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | ui/gl/io_surface_support_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698