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" |
11 #include "SkPixelRef.h" | 14 #include "SkPixelRef.h" |
12 #include "SkRasterClip.h" | 15 #include "SkPixmap.h" |
13 #include "SkShader.h" | 16 #include "SkShader.h" |
14 #include "SkSurface.h" | 17 #include "SkSurface.h" |
| 18 #include "SkXfermode.h" |
| 19 |
| 20 class SkColorTable; |
15 | 21 |
16 #define CHECK_FOR_ANNOTATION(paint) \ | 22 #define CHECK_FOR_ANNOTATION(paint) \ |
17 do { if (paint.getAnnotation()) { return; } } while (0) | 23 do { if (paint.getAnnotation()) { return; } } while (0) |
18 | 24 |
19 static bool valid_for_bitmap_device(const SkImageInfo& info, | 25 static bool valid_for_bitmap_device(const SkImageInfo& info, |
20 SkAlphaType* newAlphaType) { | 26 SkAlphaType* newAlphaType) { |
21 if (info.width() < 0 || info.height() < 0) { | 27 if (info.width() < 0 || info.height() < 0) { |
22 return false; | 28 return false; |
23 } | 29 } |
24 | 30 |
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 paint.getRasterizer() || | 380 paint.getRasterizer() || |
375 paint.getPathEffect() || | 381 paint.getPathEffect() || |
376 paint.isFakeBoldText() || | 382 paint.isFakeBoldText() || |
377 paint.getStyle() != SkPaint::kFill_Style || | 383 paint.getStyle() != SkPaint::kFill_Style || |
378 !SkXfermode::IsMode(paint.getXfermode(), SkXfermode::kSrcOver_Mode)) | 384 !SkXfermode::IsMode(paint.getXfermode(), SkXfermode::kSrcOver_Mode)) |
379 { | 385 { |
380 return true; | 386 return true; |
381 } | 387 } |
382 return false; | 388 return false; |
383 } | 389 } |
OLD | NEW |