OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "SkBitmapDevice.h" | 8 #include "SkBitmapDevice.h" |
9 #include "SkConfig8888.h" | 9 #include "SkConfig8888.h" |
10 #include "SkDraw.h" | 10 #include "SkDraw.h" |
11 #include "SkMatrix.h" | |
12 #include "SkPaint.h" | |
13 #include "SkPath.h" | |
14 #include "SkPixelRef.h" | 11 #include "SkPixelRef.h" |
15 #include "SkPixmap.h" | 12 #include "SkRasterClip.h" |
16 #include "SkShader.h" | 13 #include "SkShader.h" |
17 #include "SkSurface.h" | 14 #include "SkSurface.h" |
18 #include "SkXfermode.h" | |
19 | |
20 class SkColorTable; | |
21 | 15 |
22 #define CHECK_FOR_ANNOTATION(paint) \ | 16 #define CHECK_FOR_ANNOTATION(paint) \ |
23 do { if (paint.getAnnotation()) { return; } } while (0) | 17 do { if (paint.getAnnotation()) { return; } } while (0) |
24 | 18 |
25 static bool valid_for_bitmap_device(const SkImageInfo& info, | 19 static bool valid_for_bitmap_device(const SkImageInfo& info, |
26 SkAlphaType* newAlphaType) { | 20 SkAlphaType* newAlphaType) { |
27 if (info.width() < 0 || info.height() < 0) { | 21 if (info.width() < 0 || info.height() < 0) { |
28 return false; | 22 return false; |
29 } | 23 } |
30 | 24 |
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 paint.getRasterizer() || | 374 paint.getRasterizer() || |
381 paint.getPathEffect() || | 375 paint.getPathEffect() || |
382 paint.isFakeBoldText() || | 376 paint.isFakeBoldText() || |
383 paint.getStyle() != SkPaint::kFill_Style || | 377 paint.getStyle() != SkPaint::kFill_Style || |
384 !SkXfermode::IsMode(paint.getXfermode(), SkXfermode::kSrcOver_Mode)) | 378 !SkXfermode::IsMode(paint.getXfermode(), SkXfermode::kSrcOver_Mode)) |
385 { | 379 { |
386 return true; | 380 return true; |
387 } | 381 } |
388 return false; | 382 return false; |
389 } | 383 } |
OLD | NEW |