| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2006, Google Inc. All rights reserved. | 2 * Copyright (c) 2006, 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 875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 886 } | 886 } |
| 887 | 887 |
| 888 void GraphicsContext::setAlpha(float alpha) | 888 void GraphicsContext::setAlpha(float alpha) |
| 889 { | 889 { |
| 890 if (paintingDisabled()) | 890 if (paintingDisabled()) |
| 891 return; | 891 return; |
| 892 | 892 |
| 893 platformContext()->setAlpha(alpha); | 893 platformContext()->setAlpha(alpha); |
| 894 } | 894 } |
| 895 | 895 |
| 896 void GraphicsContext::setPlatformCompositeOperation(CompositeOperator op, BlendM
ode) | 896 void GraphicsContext::setPlatformCompositeOperation(CompositeOperator op, BlendM
ode blendMode) |
| 897 { | 897 { |
| 898 if (paintingDisabled()) | 898 if (paintingDisabled()) |
| 899 return; | 899 return; |
| 900 | 900 platformContext()->setXfermodeMode(WebCoreCompositeToSkiaComposite(op, blend
Mode)); |
| 901 platformContext()->setXfermodeMode(WebCoreCompositeToSkiaComposite(op)); | |
| 902 } | 901 } |
| 903 | 902 |
| 904 InterpolationQuality GraphicsContext::imageInterpolationQuality() const | 903 InterpolationQuality GraphicsContext::imageInterpolationQuality() const |
| 905 { | 904 { |
| 906 return platformContext()->interpolationQuality(); | 905 return platformContext()->interpolationQuality(); |
| 907 } | 906 } |
| 908 | 907 |
| 909 void GraphicsContext::setImageInterpolationQuality(InterpolationQuality q) | 908 void GraphicsContext::setImageInterpolationQuality(InterpolationQuality q) |
| 910 { | 909 { |
| 911 platformContext()->setInterpolationQuality(q); | 910 platformContext()->setInterpolationQuality(q); |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1224 if (paintingDisabled()) | 1223 if (paintingDisabled()) |
| 1225 return; | 1224 return; |
| 1226 | 1225 |
| 1227 SkRect rect(ellipse); | 1226 SkRect rect(ellipse); |
| 1228 SkPaint paint; | 1227 SkPaint paint; |
| 1229 platformContext()->setupPaintForStroking(&paint, 0, 0); | 1228 platformContext()->setupPaintForStroking(&paint, 0, 0); |
| 1230 platformContext()->drawOval(rect, paint); | 1229 platformContext()->drawOval(rect, paint); |
| 1231 } | 1230 } |
| 1232 | 1231 |
| 1233 } // namespace WebCore | 1232 } // namespace WebCore |
| OLD | NEW |