Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Side by Side Diff: src/core/SkBitmapDevice.cpp

Issue 189913021: Implement support for a Context parameter in image filters (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Revert all but the Context changes. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « include/gpu/SkGpuDevice.h ('k') | src/core/SkCanvas.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « include/gpu/SkGpuDevice.h ('k') | src/core/SkCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698