Changeset 76974 in webkit
- Timestamp:
- Jan 28, 2011 12:39:53 PM (13 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r76967 r76974 1 2011-01-28 Anders Carlsson <andersca@apple.com> 2 3 Reviewed by Adam Roben. 4 5 Add ShareableSurface class 6 https://bugs.webkit.org/show_bug.cgi?id=53313 7 8 * Shared/mac/ShareableSurface.cpp: Added. 9 (WebKit::ShareableSurface::Handle::Handle): 10 Initialize the mach port. 11 12 (WebKit::ShareableSurface::Handle::~Handle): 13 Deallocate our send right if needed. 14 15 (WebKit::ShareableSurface::Handle::encode): 16 Encode the send right, and then null it out. 17 18 (WebKit::ShareableSurface::Handle::decode): 19 Decode the send right. 20 21 (WebKit::createIOSurface): 22 Create an IOSurface with the given size. 23 24 (WebKit::ShareableSurface::create): 25 Create an IOSurface, either from a size or from a handle. 26 27 (WebKit::ShareableSurface::~ShareableSurface): 28 Delete the texture and framebuffer. 29 30 (WebKit::ShareableSurface::createHandle): 31 Create a mach port from the surface. 32 33 (WebKit::ShareableSurface::attach): 34 Create an FBO if needed and bind it. 35 36 (WebKit::ShareableSurface::detach): 37 Unbind the FBO. 38 39 (WebKit::ShareableSurface::textureID): 40 Generate a new texture and bind it to the IOSurface. 41 42 * Shared/mac/ShareableSurface.h: Added. 43 44 * WebKit2.xcodeproj/project.pbxproj: 45 Add new files. 46 1 47 2011-01-27 Adam Roben <aroben@apple.com> 2 48 -
trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj
r76916 r76974 175 175 1A91010A1268C8CA001842F5 /* FindIndicatorWindow.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A9101081268C8CA001842F5 /* FindIndicatorWindow.h */; }; 176 176 1A91010B1268C8CA001842F5 /* FindIndicatorWindow.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1A9101091268C8CA001842F5 /* FindIndicatorWindow.mm */; }; 177 1A9636BC12F348490078A062 /* ShareableSurface.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A9636BA12F348490078A062 /* ShareableSurface.cpp */; }; 178 1A9636BD12F348490078A062 /* ShareableSurface.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A9636BB12F348490078A062 /* ShareableSurface.h */; }; 177 179 1AA1CC5D100FA1A10078DEBC /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1AA1CC5C100FA1A10078DEBC /* QuartzCore.framework */; }; 178 180 1AA1CD07100FA1BA0078DEBC /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1AA1CD06100FA1BA0078DEBC /* Carbon.framework */; }; … … 919 921 1A9101081268C8CA001842F5 /* FindIndicatorWindow.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FindIndicatorWindow.h; sourceTree = "<group>"; }; 920 922 1A9101091268C8CA001842F5 /* FindIndicatorWindow.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = FindIndicatorWindow.mm; sourceTree = "<group>"; }; 923 1A9636BA12F348490078A062 /* ShareableSurface.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ShareableSurface.cpp; sourceTree = "<group>"; }; 924 1A9636BB12F348490078A062 /* ShareableSurface.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ShareableSurface.h; sourceTree = "<group>"; }; 921 925 1AA1C79A100E7FC50078DEBC /* WebCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = WebCore.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 922 926 1AA1C7DE100E846E0078DEBC /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = JavaScriptCore.framework; sourceTree = BUILT_PRODUCTS_DIR; }; … … 2355 2359 isa = PBXGroup; 2356 2360 children = ( 2361 1A6F9FB611E1408500DB1371 /* CommandLineMac.cpp */, 2362 C02BFF1D1251502E009CCBEA /* NativeWebKeyboardEventMac.mm */, 2357 2363 C574A57F12E66681002DFE98 /* PasteboardTypes.h */, 2358 2364 C574A58012E66681002DFE98 /* PasteboardTypes.mm */, 2359 1A6F9FB611E1408500DB1371 /* CommandLineMac.cpp */, 2360 C02BFF1D1251502E009CCBEA /* NativeWebKeyboardEventMac.mm */, 2365 BCF505E51243047B005955AE /* PlatformCertificateInfo.h */, 2361 2366 BCF505E61243047B005955AE /* PlatformCertificateInfo.mm */, 2362 BCF505E51243047B005955AE /* PlatformCertificateInfo.h */,2363 2367 E1CC1B8F12D7EADF00625838 /* PrintInfoMac.mm */, 2368 1AAB4AA91296F1540023952F /* SandboxExtensionMac.mm */, 2369 1A9636BA12F348490078A062 /* ShareableSurface.cpp */, 2370 1A9636BB12F348490078A062 /* ShareableSurface.h */, 2364 2371 BC9E95D211449B0300870E71 /* UpdateChunk.cpp */, 2365 2372 BC9E95D111449B0300870E71 /* UpdateChunk.h */, … … 2370 2377 BCE231C0122C466E00D5C35A /* WebURLRequestMac.mm */, 2371 2378 BC90A1D5122DD66A00CC8C50 /* WebURLResponseMac.mm */, 2372 1AAB4AA91296F1540023952F /* SandboxExtensionMac.mm */,2373 2379 ); 2374 2380 path = mac; … … 3102 3108 1A186EEA12EF7618008E5F37 /* LayerTreeHost.h in Headers */, 3103 3109 BFA6179F12F0B99D0033E0CA /* WKViewPrivate.h in Headers */, 3110 1A9636BD12F348490078A062 /* ShareableSurface.h in Headers */, 3104 3111 ); 3105 3112 runOnlyForDeploymentPostprocessing = 0; … … 3569 3576 1A18718512EF9877008E5F37 /* LayerTreeHostMac.mm in Sources */, 3570 3577 6501BD1A12F1243400E9F248 /* WKBundleInspector.cpp in Sources */, 3578 1A9636BC12F348490078A062 /* ShareableSurface.cpp in Sources */, 3571 3579 ); 3572 3580 runOnlyForDeploymentPostprocessing = 0;
Note: See TracChangeset
for help on using the changeset viewer.