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

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

Issue 920513003: Make filters use SkImage instead of SkBitmap Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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
« no previous file with comments | « src/core/SkCanvas.cpp ('k') | src/core/SkDeviceImageFilterProxy.h » ('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 2011 Google Inc. 2 * Copyright 2011 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 "SkDevice.h" 8 #include "SkDevice.h"
9 #include "SkDeviceProperties.h" 9 #include "SkDeviceProperties.h"
10 #include "SkDraw.h" 10 #include "SkDraw.h"
11 #include "SkDrawFilter.h" 11 #include "SkDrawFilter.h"
12 #include "SkImage_Base.h"
12 #include "SkMetaData.h" 13 #include "SkMetaData.h"
13 #include "SkPatchUtils.h" 14 #include "SkPatchUtils.h"
14 #include "SkPathMeasure.h" 15 #include "SkPathMeasure.h"
15 #include "SkRasterClip.h" 16 #include "SkRasterClip.h"
16 #include "SkShader.h" 17 #include "SkShader.h"
17 #include "SkTextBlob.h" 18 #include "SkTextBlob.h"
18 #include "SkTextToPathIter.h" 19 #include "SkTextToPathIter.h"
19 20
20 SkBaseDevice::SkBaseDevice() 21 SkBaseDevice::SkBaseDevice()
21 : fLeakyProperties(SkNEW_ARGS(SkDeviceProperties, (SkDeviceProperties::kLega cyLCD_InitType))) 22 : fLeakyProperties(SkNEW_ARGS(SkDeviceProperties, (SkDeviceProperties::kLega cyLCD_InitType)))
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 if (kUnknown_SkPixelGeometry == fLeakyProperties->pixelGeometry() 360 if (kUnknown_SkPixelGeometry == fLeakyProperties->pixelGeometry()
360 || this->onShouldDisableLCD(paint)) { 361 || this->onShouldDisableLCD(paint)) {
361 362
362 flags &= ~SkPaint::kLCDRenderText_Flag; 363 flags &= ~SkPaint::kLCDRenderText_Flag;
363 flags |= SkPaint::kGenA8FromLCD_Flag; 364 flags |= SkPaint::kGenA8FromLCD_Flag;
364 } 365 }
365 366
366 return flags; 367 return flags;
367 } 368 }
368 369
OLDNEW
« no previous file with comments | « src/core/SkCanvas.cpp ('k') | src/core/SkDeviceImageFilterProxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698