| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2009 Apple Inc. All rights reserved. | 3 * Copyright (C) 2009 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 case FilterOperation::BLUR: { | 351 case FilterOperation::BLUR: { |
| 352 float pixelRadius = static_cast<const BlurFilterOperation*>(&op)->st
dDeviation().getFloatValue(); | 352 float pixelRadius = static_cast<const BlurFilterOperation*>(&op)->st
dDeviation().getFloatValue(); |
| 353 webFilters.append(WebFilterOperation::createBlurFilter(pixelRadius))
; | 353 webFilters.append(WebFilterOperation::createBlurFilter(pixelRadius))
; |
| 354 break; | 354 break; |
| 355 } | 355 } |
| 356 case FilterOperation::DROP_SHADOW: { | 356 case FilterOperation::DROP_SHADOW: { |
| 357 const DropShadowFilterOperation& dropShadowOp = *static_cast<const D
ropShadowFilterOperation*>(&op); | 357 const DropShadowFilterOperation& dropShadowOp = *static_cast<const D
ropShadowFilterOperation*>(&op); |
| 358 webFilters.append(WebFilterOperation::createDropShadowFilter(WebPoin
t(dropShadowOp.x(), dropShadowOp.y()), dropShadowOp.stdDeviation(), dropShadowOp
.color().rgb())); | 358 webFilters.append(WebFilterOperation::createDropShadowFilter(WebPoin
t(dropShadowOp.x(), dropShadowOp.y()), dropShadowOp.stdDeviation(), dropShadowOp
.color().rgb())); |
| 359 break; | 359 break; |
| 360 } | 360 } |
| 361 #if ENABLE(CSS_SHADERS) | |
| 362 case FilterOperation::CUSTOM: | 361 case FilterOperation::CUSTOM: |
| 363 case FilterOperation::VALIDATED_CUSTOM: | 362 case FilterOperation::VALIDATED_CUSTOM: |
| 364 return false; // Not supported. | 363 return false; // Not supported. |
| 365 #endif | |
| 366 case FilterOperation::PASSTHROUGH: | 364 case FilterOperation::PASSTHROUGH: |
| 367 case FilterOperation::NONE: | 365 case FilterOperation::NONE: |
| 368 break; | 366 break; |
| 369 } | 367 } |
| 370 } | 368 } |
| 371 return true; | 369 return true; |
| 372 } | 370 } |
| 373 | 371 |
| 374 bool GraphicsLayerChromium::setFilters(const FilterOperations& filters) | 372 bool GraphicsLayerChromium::setFilters(const FilterOperations& filters) |
| 375 { | 373 { |
| (...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 904 info.addMember(m_transformLayer, "transformLayer"); | 902 info.addMember(m_transformLayer, "transformLayer"); |
| 905 info.addMember(m_imageLayer, "imageLayer"); | 903 info.addMember(m_imageLayer, "imageLayer"); |
| 906 info.addMember(m_contentsLayer, "contentsLayer"); | 904 info.addMember(m_contentsLayer, "contentsLayer"); |
| 907 info.addMember(m_linkHighlight, "linkHighlight"); | 905 info.addMember(m_linkHighlight, "linkHighlight"); |
| 908 info.addMember(m_opaqueRectTrackingContentLayerDelegate, "opaqueRectTracking
ContentLayerDelegate"); | 906 info.addMember(m_opaqueRectTrackingContentLayerDelegate, "opaqueRectTracking
ContentLayerDelegate"); |
| 909 info.addMember(m_animationIdMap, "animationIdMap"); | 907 info.addMember(m_animationIdMap, "animationIdMap"); |
| 910 info.addMember(m_scrollableArea, "scrollableArea"); | 908 info.addMember(m_scrollableArea, "scrollableArea"); |
| 911 } | 909 } |
| 912 | 910 |
| 913 } // namespace WebCore | 911 } // namespace WebCore |
| OLD | NEW |