| 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 20 matching lines...) Expand all Loading... |
| 31 // All of the functions in this file should move to new homes and this file | 31 // All of the functions in this file should move to new homes and this file |
| 32 // should be deleted. | 32 // should be deleted. |
| 33 | 33 |
| 34 #ifndef SkiaUtils_h | 34 #ifndef SkiaUtils_h |
| 35 #define SkiaUtils_h | 35 #define SkiaUtils_h |
| 36 | 36 |
| 37 #include "platform/PlatformExport.h" | 37 #include "platform/PlatformExport.h" |
| 38 #include "platform/graphics/GraphicsTypes.h" | 38 #include "platform/graphics/GraphicsTypes.h" |
| 39 #include "platform/graphics/Image.h" | 39 #include "platform/graphics/Image.h" |
| 40 #include "platform/transforms/AffineTransform.h" | 40 #include "platform/transforms/AffineTransform.h" |
| 41 #include "platform/wtf/MathExtras.h" |
| 41 #include "third_party/skia/include/core/SkCanvas.h" | 42 #include "third_party/skia/include/core/SkCanvas.h" |
| 42 #include "third_party/skia/include/core/SkColor.h" | 43 #include "third_party/skia/include/core/SkColor.h" |
| 43 #include "third_party/skia/include/core/SkRefCnt.h" | 44 #include "third_party/skia/include/core/SkRefCnt.h" |
| 44 #include "third_party/skia/include/core/SkScalar.h" | 45 #include "third_party/skia/include/core/SkScalar.h" |
| 45 #include "wtf/MathExtras.h" | |
| 46 | 46 |
| 47 namespace blink { | 47 namespace blink { |
| 48 | 48 |
| 49 class GraphicsContext; | 49 class GraphicsContext; |
| 50 | 50 |
| 51 /**** constants ****/ | 51 /**** constants ****/ |
| 52 | 52 |
| 53 enum { | 53 enum { |
| 54 // Firefox limits width/height to 32767 pixels, but slows down dramatically | 54 // Firefox limits width/height to 32767 pixels, but slows down dramatically |
| 55 // before it reaches that limit. We limit by area instead, giving us larger | 55 // before it reaches that limit. We limit by area instead, giving us larger |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 // paint.setShader(SkShader::MakeFoo(...)); | 173 // paint.setShader(SkShader::MakeFoo(...)); |
| 174 // | 174 // |
| 175 // b) shared ownership | 175 // b) shared ownership |
| 176 // | 176 // |
| 177 // sk_sp<SkShader> shader = SkShader::MakeFoo(...); | 177 // sk_sp<SkShader> shader = SkShader::MakeFoo(...); |
| 178 // paint.setShader(shader); | 178 // paint.setShader(shader); |
| 179 | 179 |
| 180 } // namespace blink | 180 } // namespace blink |
| 181 | 181 |
| 182 #endif // SkiaUtils_h | 182 #endif // SkiaUtils_h |
| OLD | NEW |