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

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

Issue 1787883002: Add SkSpecialImage::extractSubset & NewFromPixmap (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Update to ToT Created 4 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/SkPixmap.cpp ('k') | src/core/SkSpecialImage.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 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #include "SkScalerContext.h" 10 #include "SkScalerContext.h"
11 #include "SkAutoPixmapStorage.h"
11 #include "SkColorPriv.h" 12 #include "SkColorPriv.h"
12 #include "SkDescriptor.h" 13 #include "SkDescriptor.h"
13 #include "SkDraw.h" 14 #include "SkDraw.h"
14 #include "SkGlyph.h" 15 #include "SkGlyph.h"
15 #include "SkMaskFilter.h" 16 #include "SkMaskFilter.h"
16 #include "SkMaskGamma.h" 17 #include "SkMaskGamma.h"
17 #include "SkMatrix22.h" 18 #include "SkMatrix22.h"
18 #include "SkReadBuffer.h" 19 #include "SkReadBuffer.h"
19 #include "SkWriteBuffer.h" 20 #include "SkWriteBuffer.h"
20 #include "SkPathEffect.h" 21 #include "SkPathEffect.h"
(...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after
880 881
881 SkScalerContext* SkTypeface::createScalerContext(const SkDescriptor* desc, 882 SkScalerContext* SkTypeface::createScalerContext(const SkDescriptor* desc,
882 bool allowFailure) const { 883 bool allowFailure) const {
883 SkScalerContext* c = this->onCreateScalerContext(desc); 884 SkScalerContext* c = this->onCreateScalerContext(desc);
884 885
885 if (!c && !allowFailure) { 886 if (!c && !allowFailure) {
886 c = new SkScalerContext_Empty(const_cast<SkTypeface*>(this), desc); 887 c = new SkScalerContext_Empty(const_cast<SkTypeface*>(this), desc);
887 } 888 }
888 return c; 889 return c;
889 } 890 }
OLDNEW
« no previous file with comments | « src/core/SkPixmap.cpp ('k') | src/core/SkSpecialImage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698