| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2006,2007,2008, Google Inc. All rights reserved. | 2 * Copyright (c) 2006,2007,2008, Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #include "config.h" | 31 #include "config.h" |
| 32 | |
| 33 #include "platform/graphics/skia/SkiaUtils.h" | 32 #include "platform/graphics/skia/SkiaUtils.h" |
| 34 | 33 |
| 35 #include "SkColorPriv.h" | |
| 36 #include "SkRegion.h" | |
| 37 #include "platform/graphics/GraphicsContext.h" | 34 #include "platform/graphics/GraphicsContext.h" |
| 38 #include "platform/graphics/ImageBuffer.h" | 35 #include "third_party/skia/include/core/SkRegion.h" |
| 36 #include "third_party/skia/include/effects/SkCornerPathEffect.h" |
| 39 | 37 |
| 40 namespace blink { | 38 namespace blink { |
| 41 | 39 |
| 42 static const struct CompositOpToXfermodeMode { | 40 static const struct CompositOpToXfermodeMode { |
| 43 CompositeOperator mCompositOp; | 41 CompositeOperator mCompositOp; |
| 44 SkXfermode::Mode m_xfermodeMode; | 42 SkXfermode::Mode m_xfermodeMode; |
| 45 } gMapCompositOpsToXfermodeModes[] = { | 43 } gMapCompositOpsToXfermodeModes[] = { |
| 46 { CompositeClear, SkXfermode::kClear_Mode }, | 44 { CompositeClear, SkXfermode::kClear_Mode }, |
| 47 { CompositeCopy, SkXfermode::kSrc_Mode }, | 45 { CompositeCopy, SkXfermode::kSrc_Mode }, |
| 48 { CompositeSourceOver, SkXfermode::kSrcOver_Mode }, | 46 { CompositeSourceOver, SkXfermode::kSrcOver_Mode }, |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 paint.setAlpha(128); | 395 paint.setAlpha(128); |
| 398 paint.setStrokeWidth(paint.getStrokeWidth() * 0.5f); | 396 paint.setStrokeWidth(paint.getStrokeWidth() * 0.5f); |
| 399 drawFocusRingPrimitive(primitive, canvas, paint, cornerRadius); | 397 drawFocusRingPrimitive(primitive, canvas, paint, cornerRadius); |
| 400 #endif | 398 #endif |
| 401 } | 399 } |
| 402 | 400 |
| 403 template void PLATFORM_EXPORT drawPlatformFocusRing<SkRect>(const SkRect&, SkCan
vas*, SkColor, int width); | 401 template void PLATFORM_EXPORT drawPlatformFocusRing<SkRect>(const SkRect&, SkCan
vas*, SkColor, int width); |
| 404 template void PLATFORM_EXPORT drawPlatformFocusRing<SkPath>(const SkPath&, SkCan
vas*, SkColor, int width); | 402 template void PLATFORM_EXPORT drawPlatformFocusRing<SkPath>(const SkPath&, SkCan
vas*, SkColor, int width); |
| 405 | 403 |
| 406 } // namespace blink | 404 } // namespace blink |
| OLD | NEW |