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

Side by Side Diff: dm/DMPDFTask.cpp

Issue 338633011: Deprecate SkPicture::clone(). (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add define for chrome Created 6 years, 5 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
OLDNEW
1 /* 1 /*
2 * Copyright 2014 Google Inc. 2 * Copyright 2014 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 "DMPDFTask.h" 8 #include "DMPDFTask.h"
9 #include "DMPDFRasterizeTask.h" 9 #include "DMPDFRasterizeTask.h"
10 #include "DMUtil.h" 10 #include "DMUtil.h"
(...skipping 14 matching lines...) Expand all
25 TaskRunner* taskRunner, 25 TaskRunner* taskRunner,
26 skiagm::GMRegistry::Factory factory, 26 skiagm::GMRegistry::Factory factory,
27 RasterizePdfProc rasterizePdfProc) 27 RasterizePdfProc rasterizePdfProc)
28 : CpuTask(reporter, taskRunner) 28 : CpuTask(reporter, taskRunner)
29 , fGM(factory(NULL)) 29 , fGM(factory(NULL))
30 , fName(UnderJoin(fGM->getName(), config)) 30 , fName(UnderJoin(fGM->getName(), config))
31 , fRasterize(rasterizePdfProc) {} 31 , fRasterize(rasterizePdfProc) {}
32 32
33 PDFTask::PDFTask(Reporter* reporter, 33 PDFTask::PDFTask(Reporter* reporter,
34 TaskRunner* taskRunner, 34 TaskRunner* taskRunner,
35 SkPicture* picture, 35 const SkPicture* picture,
36 SkString filename, 36 SkString filename,
37 RasterizePdfProc rasterizePdfProc) 37 RasterizePdfProc rasterizePdfProc)
38 : CpuTask(reporter, taskRunner) 38 : CpuTask(reporter, taskRunner)
39 , fPicture(SkRef(picture)) 39 , fPicture(SkRef(picture))
40 , fName(UnderJoin(FileToTaskName(filename).c_str(), "pdf")) 40 , fName(UnderJoin(FileToTaskName(filename).c_str(), "pdf"))
41 , fRasterize(rasterizePdfProc) {} 41 , fRasterize(rasterizePdfProc) {}
42 42
43 namespace { 43 namespace {
44 44
45 class SinglePagePDF { 45 class SinglePagePDF {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 if (!FLAGS_pdf) { 92 if (!FLAGS_pdf) {
93 return true; 93 return true;
94 } 94 }
95 if (fGM.get() && 0 != (fGM->getFlags() & skiagm::GM::kSkipPDF_Flag)) { 95 if (fGM.get() && 0 != (fGM->getFlags() & skiagm::GM::kSkipPDF_Flag)) {
96 return true; 96 return true;
97 } 97 }
98 return false; 98 return false;
99 } 99 }
100 100
101 } // namespace DM 101 } // namespace DM
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698