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

Side by Side Diff: samplecode/SampleApp.cpp

Issue 499413002: SkTextBlob plumbing (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 4 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 | « include/utils/SkProxyCanvas.h ('k') | src/core/SkBBoxRecord.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 "SampleApp.h" 8 #include "SampleApp.h"
9 9
10 #include "OverView.h" 10 #include "OverView.h"
(...skipping 1272 matching lines...) Expand 10 before | Expand all | Expand 10 after
1283 SkCanvas* SampleWindow::beforeChildren(SkCanvas* canvas) { 1283 SkCanvas* SampleWindow::beforeChildren(SkCanvas* canvas) {
1284 if (fSaveToPdf) { 1284 if (fSaveToPdf) {
1285 const SkBitmap bmp = capture_bitmap(canvas); 1285 const SkBitmap bmp = capture_bitmap(canvas);
1286 SkISize size = SkISize::Make(bmp.width(), bmp.height()); 1286 SkISize size = SkISize::Make(bmp.width(), bmp.height());
1287 SkPDFDevice* pdfDevice = new SkPDFDevice(size, size, 1287 SkPDFDevice* pdfDevice = new SkPDFDevice(size, size,
1288 canvas->getTotalMatrix()); 1288 canvas->getTotalMatrix());
1289 fPdfCanvas = new SkCanvas(pdfDevice); 1289 fPdfCanvas = new SkCanvas(pdfDevice);
1290 pdfDevice->unref(); 1290 pdfDevice->unref();
1291 canvas = fPdfCanvas; 1291 canvas = fPdfCanvas;
1292 } else if (kPicture_DeviceType == fDeviceType) { 1292 } else if (kPicture_DeviceType == fDeviceType) {
1293 canvas = fRecorder.beginRecording(9999, 9999, NULL, 0); 1293 canvas = fRecorder.DEPRECATED_beginRecording(9999, 9999, NULL, 0);
mtklein 2014/08/25 18:59:07 Can we make this work with vanilla beginRecording(
f(malita) 2014/08/25 19:00:26 That was supposed to be a local/test change, leake
1294 } else { 1294 } else {
1295 #if SK_SUPPORT_GPU 1295 #if SK_SUPPORT_GPU
1296 if (kNullGPU_DeviceType != fDeviceType) 1296 if (kNullGPU_DeviceType != fDeviceType)
1297 #endif 1297 #endif
1298 { 1298 {
1299 canvas = this->INHERITED::beforeChildren(canvas); 1299 canvas = this->INHERITED::beforeChildren(canvas);
1300 } 1300 }
1301 } 1301 }
1302 1302
1303 if (fUseClip) { 1303 if (fUseClip) {
(...skipping 1092 matching lines...) Expand 10 before | Expand all | Expand 10 after
2396 setenv("ANDROID_ROOT", "/android/device/data", 0); 2396 setenv("ANDROID_ROOT", "/android/device/data", 0);
2397 #endif 2397 #endif
2398 SkGraphics::Init(); 2398 SkGraphics::Init();
2399 SkEvent::Init(); 2399 SkEvent::Init();
2400 } 2400 }
2401 2401
2402 void application_term() { 2402 void application_term() {
2403 SkEvent::Term(); 2403 SkEvent::Term();
2404 SkGraphics::Term(); 2404 SkGraphics::Term();
2405 } 2405 }
OLDNEW
« no previous file with comments | « include/utils/SkProxyCanvas.h ('k') | src/core/SkBBoxRecord.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698