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

Side by Side Diff: src/core/SkCanvas.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/SkBitmapDevice.cpp ('k') | src/core/SkDevice.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 2008 The Android Open Source Project 2 * Copyright 2008 The Android Open Source Project
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 "SkCanvas.h" 8 #include "SkCanvas.h"
9 #include "SkCanvasPriv.h" 9 #include "SkCanvasPriv.h"
10 #include "SkBitmapDevice.h" 10 #include "SkBitmapDevice.h"
(...skipping 1031 matching lines...) Expand 10 before | Expand all | Expand 10 after
1042 return; 1042 return;
1043 } 1043 }
1044 1044
1045 bool forceSpriteOnRestore = false; 1045 bool forceSpriteOnRestore = false;
1046 { 1046 {
1047 const SkBaseDevice::TileUsage usage = SkBaseDevice::kNever_TileUsage; 1047 const SkBaseDevice::TileUsage usage = SkBaseDevice::kNever_TileUsage;
1048 const SkBaseDevice::CreateInfo createInfo = SkBaseDevice::CreateInfo(inf o, usage, geo); 1048 const SkBaseDevice::CreateInfo createInfo = SkBaseDevice::CreateInfo(inf o, usage, geo);
1049 SkBaseDevice* newDev = device->onCreateDevice(createInfo, paint); 1049 SkBaseDevice* newDev = device->onCreateDevice(createInfo, paint);
1050 if (NULL == newDev) { 1050 if (NULL == newDev) {
1051 // If onCreateDevice didn't succeed, try raster (e.g. PDF couldn't h andle the paint) 1051 // If onCreateDevice didn't succeed, try raster (e.g. PDF couldn't h andle the paint)
1052 const SkSurfaceProps surfaceProps(0, createInfo.fPixelGeometry); 1052 const SkSurfaceProps surfaceProps(fProps.flags(), createInfo.fPixelG eometry);
1053 newDev = SkBitmapDevice::Create(createInfo.fInfo, &surfaceProps); 1053 newDev = SkBitmapDevice::Create(createInfo.fInfo, surfaceProps);
1054 if (NULL == newDev) { 1054 if (NULL == newDev) {
1055 SkErrorInternals::SetError(kInternalError_SkError, 1055 SkErrorInternals::SetError(kInternalError_SkError,
1056 "Unable to create device for layer.") ; 1056 "Unable to create device for layer.") ;
1057 return; 1057 return;
1058 } 1058 }
1059 forceSpriteOnRestore = true; 1059 forceSpriteOnRestore = true;
1060 } 1060 }
1061 device = newDev; 1061 device = newDev;
1062 } 1062 }
1063 1063
(...skipping 1658 matching lines...) Expand 10 before | Expand all | Expand 10 after
2722 } 2722 }
2723 2723
2724 if (matrix) { 2724 if (matrix) {
2725 canvas->concat(*matrix); 2725 canvas->concat(*matrix);
2726 } 2726 }
2727 } 2727 }
2728 2728
2729 SkAutoCanvasMatrixPaint::~SkAutoCanvasMatrixPaint() { 2729 SkAutoCanvasMatrixPaint::~SkAutoCanvasMatrixPaint() {
2730 fCanvas->restoreToCount(fSaveCount); 2730 fCanvas->restoreToCount(fSaveCount);
2731 } 2731 }
OLDNEW
« no previous file with comments | « src/core/SkBitmapDevice.cpp ('k') | src/core/SkDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698