Changeset 132927 in webkit
- Timestamp:
- Oct 30, 2012, 11:15:05 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 added
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/CMakeLists.txt
r132920 r132927 1914 1914 platform/graphics/filters/CustomFilterOperation.cpp 1915 1915 platform/graphics/filters/CustomFilterParameterList.cpp 1916 platform/graphics/filters/ValidatedCustomFilterOperation.cpp 1916 1917 platform/graphics/filters/CustomFilterProgram.cpp 1917 1918 platform/graphics/filters/CustomFilterProgramInfo.cpp -
trunk/Source/WebCore/ChangeLog
r132925 r132927 1 2012-10-26 Alexandru Chiculita <achicu@adobe.com> 2 3 [CSS Shaders] Add the ValidatedCustomFilterOperation class 4 https://bugs.webkit.org/show_bug.cgi?id=100558 5 6 Reviewed by Dean Jackson. 7 8 Added the ValidatedCustomFilterOperation class. The file is now almost empty, 9 but more is going to come in the following patches. 10 11 Added the a filter operation type VALIDATED_CUSTOM and updated the compositors to ignore 12 such operations for now. 13 14 No new tests, there is no new functionality yet. 15 16 * CMakeLists.txt: 17 * GNUmakefile.list.am: 18 * Target.pri: 19 * WebCore.gypi: 20 * WebCore.vcproj/WebCore.vcproj: 21 * WebCore.xcodeproj/project.pbxproj: 22 * css/CSSComputedStyleDeclaration.cpp: 23 (WebCore::CSSComputedStyleDeclaration::valueForFilter): 24 * css/StyleResolver.cpp: 25 (WebCore::StyleResolver::createFilterOperations): 26 * platform/graphics/blackberry/LayerWebKitThread.cpp: 27 (WebCore::LayerWebKitThread::filtersCanBeComposited): 28 * platform/graphics/ca/mac/PlatformCALayerMac.mm: 29 (PlatformCALayer::filtersCanBeComposited): 30 * platform/graphics/chromium/GraphicsLayerChromium.cpp: 31 (WebCore::copyWebCoreFilterOperationsToWebFilterOperations): 32 * platform/graphics/filters/FilterOperation.h: 33 * platform/graphics/filters/FilterOperations.cpp: 34 (WebCore::FilterOperations::hasCustomFilter): 35 (WebCore::FilterOperations::getOutsets): 36 * platform/graphics/filters/ValidatedCustomFilterOperation.cpp: Added. 37 (WebCore): 38 (WebCore::ValidatedCustomFilterOperation::ValidatedCustomFilterOperation): 39 (WebCore::ValidatedCustomFilterOperation::~ValidatedCustomFilterOperation): 40 (WebCore::ValidatedCustomFilterOperation::blend): 41 * platform/graphics/filters/ValidatedCustomFilterOperation.h: Added. 42 (WebCore): 43 (ValidatedCustomFilterOperation): 44 (WebCore::ValidatedCustomFilterOperation::create): 45 (WebCore::ValidatedCustomFilterOperation::affectsOpacity): 46 (WebCore::ValidatedCustomFilterOperation::movesPixels): 47 (WebCore::ValidatedCustomFilterOperation::blendingNeedsRendererSize): 48 (WebCore::ValidatedCustomFilterOperation::operator==): 49 1 50 2012-10-29 Anders Carlsson <andersca@apple.com> 2 51 -
trunk/Source/WebCore/GNUmakefile.list.am
r132920 r132927 4338 4338 Source/WebCore/platform/graphics/filters/CustomFilterOperation.cpp \ 4339 4339 Source/WebCore/platform/graphics/filters/CustomFilterOperation.h \ 4340 Source/WebCore/platform/graphics/filters/ValidatedCustomFilterOperation.cpp \ 4341 Source/WebCore/platform/graphics/filters/ValidatedCustomFilterOperation.h \ 4340 4342 Source/WebCore/platform/graphics/filters/CustomFilterParameter.h \ 4341 4343 Source/WebCore/platform/graphics/filters/CustomFilterParameterList.cpp \ -
trunk/Source/WebCore/Target.pri
r132920 r132927 2078 2078 platform/graphics/filters/CustomFilterCompiledProgram.h \ 2079 2079 platform/graphics/filters/CustomFilterOperation.h \ 2080 platform/graphics/filters/ValidatedCustomFilterOperation.h \ 2080 2081 platform/graphics/filters/CustomFilterParameter.h \ 2081 2082 platform/graphics/filters/CustomFilterParameterList.h \ … … 3497 3498 platform/graphics/filters/CustomFilterOperation.cpp \ 3498 3499 platform/graphics/filters/CustomFilterParameterList.cpp \ 3500 platform/graphics/filters/ValidatedCustomFilterOperation.cpp \ 3499 3501 platform/graphics/filters/CustomFilterProgram.cpp \ 3500 3502 platform/graphics/filters/CustomFilterProgramInfo.cpp \ -
trunk/Source/WebCore/WebCore.gypi
r132920 r132927 4979 4979 'platform/graphics/filters/CustomFilterOperation.cpp', 4980 4980 'platform/graphics/filters/CustomFilterOperation.h', 4981 'platform/graphics/filters/ValidatedCustomFilterOperation.cpp', 4982 'platform/graphics/filters/ValidatedCustomFilterOperation.h', 4981 4983 'platform/graphics/filters/CustomFilterParameter.h', 4982 4984 'platform/graphics/filters/CustomFilterParameterList.cpp', -
trunk/Source/WebCore/WebCore.vcproj/WebCore.vcproj
r132920 r132927 31978 31978 </File> 31979 31979 <File 31980 RelativePath="..\platform\graphics\filters\ValidatedCustomFilterOperation.cpp" 31981 > 31982 </File> 31983 <File 31984 RelativePath="..\platform\graphics\filters\ValidatedCustomFilterOperation.h" 31985 > 31986 </File> 31987 <File 31980 31988 RelativePath="..\platform\graphics\filters\CustomFilterParameter.h" 31981 31989 > -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r132925 r132927 1512 1512 50D10D991545F5760096D288 /* RenderLayerFilterInfo.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 50D10D971545F5760096D288 /* RenderLayerFilterInfo.cpp */; }; 1513 1513 50D10D9A1545F5760096D288 /* RenderLayerFilterInfo.h in Headers */ = {isa = PBXBuildFile; fileRef = 50D10D981545F5760096D288 /* RenderLayerFilterInfo.h */; settings = {ATTRIBUTES = (Private, ); }; }; 1514 50D32857163B313F0016111E /* ValidatedCustomFilterOperation.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 50D32855163B313F0016111E /* ValidatedCustomFilterOperation.cpp */; }; 1515 50D32858163B313F0016111E /* ValidatedCustomFilterOperation.h in Headers */ = {isa = PBXBuildFile; fileRef = 50D32856163B313F0016111E /* ValidatedCustomFilterOperation.h */; }; 1514 1516 50D403C714768C9400D30BB5 /* FECustomFilter.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 50D403C514768C9400D30BB5 /* FECustomFilter.cpp */; }; 1515 1517 50D403C814768C9400D30BB5 /* FECustomFilter.h in Headers */ = {isa = PBXBuildFile; fileRef = 50D403C614768C9400D30BB5 /* FECustomFilter.h */; }; … … 8727 8729 50D10D971545F5760096D288 /* RenderLayerFilterInfo.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RenderLayerFilterInfo.cpp; sourceTree = "<group>"; }; 8728 8730 50D10D981545F5760096D288 /* RenderLayerFilterInfo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RenderLayerFilterInfo.h; sourceTree = "<group>"; }; 8731 50D32855163B313F0016111E /* ValidatedCustomFilterOperation.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = ValidatedCustomFilterOperation.cpp; path = filters/ValidatedCustomFilterOperation.cpp; sourceTree = "<group>"; }; 8732 50D32856163B313F0016111E /* ValidatedCustomFilterOperation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ValidatedCustomFilterOperation.h; path = filters/ValidatedCustomFilterOperation.h; sourceTree = "<group>"; }; 8729 8733 50D403C514768C9400D30BB5 /* FECustomFilter.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = FECustomFilter.cpp; path = filters/FECustomFilter.cpp; sourceTree = "<group>"; }; 8730 8734 50D403C614768C9400D30BB5 /* FECustomFilter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = FECustomFilter.h; path = filters/FECustomFilter.h; sourceTree = "<group>"; }; … … 18262 18266 5093334D163B0E4300099A60 /* CustomFilterParameterList.cpp */, 18263 18267 5093334E163B0E4300099A60 /* CustomFilterParameterList.h */, 18268 50D32855163B313F0016111E /* ValidatedCustomFilterOperation.cpp */, 18269 50D32856163B313F0016111E /* ValidatedCustomFilterOperation.h */, 18264 18270 49ECEB5C1499790D00CDD3A4 /* arm */, 18265 18271 15B3FC1715FB217800A81BCB /* CustomFilterArrayParameter.h */, … … 25697 25703 AAC08CF315F941FD00F1E188 /* AccessibilitySVGRoot.h in Headers */, 25698 25704 50933350163B0E4300099A60 /* CustomFilterParameterList.h in Headers */, 25705 50D32858163B313F0016111E /* ValidatedCustomFilterOperation.h in Headers */, 25699 25706 ); 25700 25707 runOnlyForDeploymentPostprocessing = 0; … … 28781 28788 5093334F163B0E4300099A60 /* CustomFilterParameterList.cpp in Sources */, 28782 28789 1AA21250163F0DA80000E63F /* AtomicStringCF.cpp in Sources */, 28790 50D32857163B313F0016111E /* ValidatedCustomFilterOperation.cpp in Sources */, 28783 28791 ); 28784 28792 runOnlyForDeploymentPostprocessing = 0; -
trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp
r132903 r132927 905 905 } 906 906 #if ENABLE(CSS_SHADERS) 907 case FilterOperation::VALIDATED_CUSTOM: 908 // ValidatedCustomFilterOperation is not supposed to end up in the RenderStyle. 909 ASSERT_NOT_REACHED(); 910 break; 907 911 case FilterOperation::CUSTOM: { 908 912 CustomFilterOperation* customOperation = static_cast<CustomFilterOperation*>(filterOperation); -
trunk/Source/WebCore/css/StyleResolver.cpp
r132903 r132927 4922 4922 4923 4923 #if ENABLE(CSS_SHADERS) 4924 if (operationType == FilterOperation::VALIDATED_CUSTOM) { 4925 // ValidatedCustomFilterOperation is not supposed to end up in the RenderStyle. 4926 ASSERT_NOT_REACHED(); 4927 continue; 4928 } 4924 4929 if (operationType == FilterOperation::CUSTOM) { 4925 4930 RefPtr<CustomFilterOperation> operation = createCustomFilterOperation(filterValue); -
trunk/Source/WebCore/platform/graphics/blackberry/LayerWebKitThread.cpp
r130439 r132927 418 418 #if ENABLE(CSS_SHADERS) 419 419 case FilterOperation::CUSTOM: 420 case FilterOperation::VALIDATED_CUSTOM: 420 421 #endif 421 422 return false; -
trunk/Source/WebCore/platform/graphics/ca/mac/PlatformCALayerMac.mm
r131966 r132927 851 851 #if ENABLE(CSS_SHADERS) 852 852 case FilterOperation::CUSTOM: 853 case FilterOperation::VALIDATED_CUSTOM: 853 854 #endif 854 855 return false; -
trunk/Source/WebCore/platform/graphics/chromium/GraphicsLayerChromium.cpp
r132223 r132927 368 368 #if ENABLE(CSS_SHADERS) 369 369 case FilterOperation::CUSTOM: 370 case FilterOperation::VALIDATED_CUSTOM: 370 371 return false; // Not supported. 371 372 #endif -
trunk/Source/WebCore/platform/graphics/filters/FilterOperation.h
r132528 r132927 70 70 #if ENABLE(CSS_SHADERS) 71 71 CUSTOM, 72 VALIDATED_CUSTOM, 72 73 #endif 73 74 PASSTHROUGH, -
trunk/Source/WebCore/platform/graphics/filters/FilterOperations.cpp
r121513 r132927 92 92 { 93 93 for (size_t i = 0; i < m_operations.size(); ++i) { 94 if (m_operations.at(i)->getOperationType() == FilterOperation::CUSTOM) 94 FilterOperation::OperationType type = m_operations.at(i)->getOperationType(); 95 if (type == FilterOperation::CUSTOM || type == FilterOperation::VALIDATED_CUSTOM) 95 96 return true; 96 97 } … … 147 148 } 148 149 #if ENABLE(CSS_SHADERS) 149 case FilterOperation::CUSTOM: { 150 // Need to include the filter margins here. 150 case FilterOperation::CUSTOM: 151 case FilterOperation::VALIDATED_CUSTOM: { 152 // FIXME: Need to include the filter margins here. 153 // https://bugs.webkit.org/show_bug.cgi?id=71400 151 154 break; 152 155 }
Note:
See TracChangeset
for help on using the changeset viewer.