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" |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 | 157 |
158 const SkBitmap& SkBitmapDevice::onAccessBitmap() { | 158 const SkBitmap& SkBitmapDevice::onAccessBitmap() { |
159 return fBitmap; | 159 return fBitmap; |
160 } | 160 } |
161 | 161 |
162 bool SkBitmapDevice::canHandleImageFilter(const SkImageFilter*) { | 162 bool SkBitmapDevice::canHandleImageFilter(const SkImageFilter*) { |
163 return false; | 163 return false; |
164 } | 164 } |
165 | 165 |
166 bool SkBitmapDevice::filterImage(const SkImageFilter* filter, const SkBitmap& sr
c, | 166 bool SkBitmapDevice::filterImage(const SkImageFilter* filter, const SkBitmap& sr
c, |
167 const SkMatrix& ctm, SkBitmap* result, | 167 const SkImageFilter::Context& ctx, SkBitmap* re
sult, |
168 SkIPoint* offset) { | 168 SkIPoint* offset) { |
169 return false; | 169 return false; |
170 } | 170 } |
171 | 171 |
172 bool SkBitmapDevice::allowImageFilter(const SkImageFilter*) { | 172 bool SkBitmapDevice::allowImageFilter(const SkImageFilter*) { |
173 return true; | 173 return true; |
174 } | 174 } |
175 | 175 |
176 bool SkBitmapDevice::onReadPixels(const SkBitmap& bitmap, | 176 bool SkBitmapDevice::onReadPixels(const SkBitmap& bitmap, |
177 int x, int y, | 177 int x, int y, |
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
575 paint.getStyle() != SkPaint::kFill_Style || | 575 paint.getStyle() != SkPaint::kFill_Style || |
576 !SkXfermode::IsMode(paint.getXfermode(), SkXfermode::kSrcOver_Mode)) { | 576 !SkXfermode::IsMode(paint.getXfermode(), SkXfermode::kSrcOver_Mode)) { |
577 // turn off lcd | 577 // turn off lcd |
578 flags->fFlags = paint.getFlags() & ~SkPaint::kLCDRenderText_Flag; | 578 flags->fFlags = paint.getFlags() & ~SkPaint::kLCDRenderText_Flag; |
579 flags->fHinting = paint.getHinting(); | 579 flags->fHinting = paint.getHinting(); |
580 return true; | 580 return true; |
581 } | 581 } |
582 // we're cool with the paint as is | 582 // we're cool with the paint as is |
583 return false; | 583 return false; |
584 } | 584 } |
OLD | NEW |