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

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

Issue 1204433002: Begin kLegacyFontHost_InitType cleanup (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add dox Created 5 years, 6 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/SkImageFilter.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 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 "SkDraw.h" 9 #include "SkDraw.h"
10 #include "SkDrawFilter.h" 10 #include "SkDrawFilter.h"
11 #include "SkImage_Base.h" 11 #include "SkImage_Base.h"
12 #include "SkMetaData.h" 12 #include "SkMetaData.h"
13 #include "SkPatchUtils.h" 13 #include "SkPatchUtils.h"
14 #include "SkPathMeasure.h" 14 #include "SkPathMeasure.h"
15 #include "SkRasterClip.h" 15 #include "SkRasterClip.h"
16 #include "SkShader.h" 16 #include "SkShader.h"
17 #include "SkTextBlob.h" 17 #include "SkTextBlob.h"
18 #include "SkTextToPathIter.h" 18 #include "SkTextToPathIter.h"
19 19
20 SkBaseDevice::SkBaseDevice()
21 : fSurfaceProps(SkSurfaceProps::kLegacyFontHost_InitType)
22 #ifdef SK_DEBUG
23 , fAttachedToCanvas(false)
24 #endif
25 {
26 fOrigin.setZero();
27 fMetaData = NULL;
28 }
29
30 SkBaseDevice::SkBaseDevice(const SkSurfaceProps& surfaceProps) 20 SkBaseDevice::SkBaseDevice(const SkSurfaceProps& surfaceProps)
31 : fSurfaceProps(surfaceProps) 21 : fSurfaceProps(surfaceProps)
32 #ifdef SK_DEBUG 22 #ifdef SK_DEBUG
33 , fAttachedToCanvas(false) 23 , fAttachedToCanvas(false)
34 #endif 24 #endif
35 { 25 {
36 fOrigin.setZero(); 26 fOrigin.setZero();
37 fMetaData = NULL; 27 fMetaData = NULL;
38 } 28 }
39 29
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 if (kUnknown_SkPixelGeometry == fSurfaceProps.pixelGeometry() 362 if (kUnknown_SkPixelGeometry == fSurfaceProps.pixelGeometry()
373 || this->onShouldDisableLCD(paint)) { 363 || this->onShouldDisableLCD(paint)) {
374 364
375 flags &= ~SkPaint::kLCDRenderText_Flag; 365 flags &= ~SkPaint::kLCDRenderText_Flag;
376 flags |= SkPaint::kGenA8FromLCD_Flag; 366 flags |= SkPaint::kGenA8FromLCD_Flag;
377 } 367 }
378 368
379 return flags; 369 return flags;
380 } 370 }
381 371
OLDNEW
« no previous file with comments | « src/core/SkCanvas.cpp ('k') | src/core/SkImageFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698