Home
last modified time | relevance | path

Searched refs:fPicture (Results 1 – 25 of 55) sorted by relevance

123

/external/chromium_org/third_party/skia/tools/
DPictureRenderer.cpp61 SkASSERT(NULL == fPicture); in init()
63 if (fPicture || fCanvas.get()) { in init()
72 fPicture.reset(pict)->ref(); in init()
189 fPicture.reset(NULL); in end()
194 SkASSERT(fPicture != NULL); in getViewWidth()
195 int width = SkScalarCeilToInt(fPicture->cullRect().width() * fScaleFactor); in getViewWidth()
203 SkASSERT(fPicture != NULL); in getViewHeight()
204 int height = SkScalarCeilToInt(fPicture->cullRect().height() * fScaleFactor); in getViewHeight()
216 SkASSERT(fPicture); in buildBBoxHierarchy()
217 if (kNone_BBoxHierarchyType != fBBoxHierarchyType && fPicture) { in buildBBoxHierarchy()
[all …]
/external/skia/src/effects/
DSkPictureImageFilter.cpp17 fPicture(picture), in SkPictureImageFilter()
20 SkSafeRef(fPicture); in SkPictureImageFilter()
25 fPicture(picture), in SkPictureImageFilter()
27 SkSafeRef(fPicture); in SkPictureImageFilter()
31 SkSafeUnref(fPicture); in ~SkPictureImageFilter()
36 fPicture(NULL) { in SkPictureImageFilter()
39 fPicture = SkPicture::CreateFromBuffer(buffer); in SkPictureImageFilter()
50 bool hasPicture = (fPicture != NULL); in flatten()
53 fPicture->flatten(buffer); in flatten()
63 if (!fPicture) { in onFilterImage()
[all …]
/external/skia/tools/
DPictureRenderer.cpp58 SkASSERT(NULL == fPicture); in init()
60 if (NULL != fPicture || NULL != fCanvas.get()) { in init()
69 fPicture.reset(pict)->ref(); in init()
185 fPicture.reset(NULL); in end()
190 SkASSERT(fPicture != NULL); in getViewWidth()
191 int width = SkScalarCeilToInt(fPicture->width() * fScaleFactor); in getViewWidth()
199 SkASSERT(fPicture != NULL); in getViewHeight()
200 int height = SkScalarCeilToInt(fPicture->height() * fScaleFactor); in getViewHeight()
212 SkASSERT(NULL != fPicture); in buildBBoxHierarchy()
213 if (kNone_BBoxHierarchyType != fBBoxHierarchyType && NULL != fPicture) { in buildBBoxHierarchy()
[all …]
DPdfRenderer.cpp17 SkASSERT(NULL == fPicture); in init()
19 if (fPicture != NULL || NULL != fCanvas.get()) { in init()
28 fPicture = pict; in init()
42 fPicture = NULL; in end()
49 SkASSERT(fPicture != NULL); in render()
50 if (NULL == fCanvas.get() || NULL == fPicture) { in render()
54 fCanvas->drawPicture(fPicture); in render()
DPdfRenderer.h38 : fPicture(NULL) in PdfRenderer()
47 SkPicture* fPicture; variable
/external/skia/src/core/
DSkPictureShader.cpp24 , fPicture(SkRef(picture)) in SkPictureShader()
32 fPicture = SkPicture::CreateFromBuffer(buffer); in SkPictureShader()
36 fPicture->unref(); in ~SkPictureShader()
52 fPicture->flatten(buffer); in flatten()
56 SkASSERT(fPicture && fPicture->width() > 0 && fPicture->height() > 0); in refBitmapShader()
71 SkSize scaledSize = SkSize::Make(scale.x() * fPicture->width(), scale.y() * fPicture->height()); in refBitmapShader()
79 SkSize tileScale = SkSize::Make(SkIntToScalar(tileSize.width()) / fPicture->width(), in refBitmapShader()
80 SkIntToScalar(tileSize.height()) / fPicture->height()); in refBitmapShader()
95 canvas.drawPicture(fPicture); in refBitmapShader()
181 fPicture ? fPicture->width() : 0, in toString()
[all …]
/external/skia/dm/
DDMSKPTask.cpp9 : CpuTask(r, tr), fPicture(SkRef(pic)), fName(FileToTaskName(filename)) {} in SKPTask()
13 AllocatePixels(kN32_SkColorType, fPicture->width(), fPicture->height(), &bitmap); in draw()
14 DrawPicture(fPicture, &bitmap); in draw()
17 (*this, fPicture, bitmap, RecordTask::kNoOptimize_Mode))); in draw()
19 (*this, fPicture, bitmap, RecordTask::kOptimize_Mode))); in draw()
DDMPDFTask.cpp39 , fPicture(SkRef(picture)) in PDFTask()
79 SinglePagePDF pdf(SkIntToScalar(fPicture->width()), SkIntToScalar(fPicture->height())); in draw()
80 fPicture->draw(pdf.canvas()); in draw()
/external/chromium_org/third_party/skia/src/effects/
DSkPictureImageFilter.cpp17 , fPicture(SkSafeRef(picture)) in SkPictureImageFilter()
24 , fPicture(SkSafeRef(picture)) in SkPictureImageFilter()
29 SkSafeUnref(fPicture); in ~SkPictureImageFilter()
35 fPicture(NULL) { in SkPictureImageFilter()
38 fPicture = SkPicture::CreateFromBuffer(buffer); in SkPictureImageFilter()
65 bool hasPicture = (fPicture != NULL); in flatten()
68 fPicture->flatten(buffer); in flatten()
78 if (!fPicture) { in onFilterImage()
106 canvas.drawPicture(fPicture); in onFilterImage()
/external/skia/samplecode/
DSamplePdfFileViewer.cpp35 SkPicture* fPicture; // TODO(edisonn): multiple pages, one page / picture, make it an array member in PdfFileViewer
53 fPicture = NULL; in PdfFileViewer()
57 SkSafeUnref(fPicture); in ~PdfFileViewer()
81 if (!fPicture) { in onDrawContent()
82 fPicture = LoadPdf(fFilename.c_str()); in onDrawContent()
84 if (fPicture) { in onDrawContent()
85 canvas->drawPicture(*fPicture); in onDrawContent()
DSamplePicture.cpp86 fPicture = recorder.endRecording(); in PictureView()
95 fPicture->unref(); in ~PictureView()
174 canvas->drawPicture(fPicture); in onDrawContent()
193 SkPicture* fPicture; member in PictureView
/external/chromium_org/third_party/skia/samplecode/
DSamplePdfFileViewer.cpp35 SkPicture* fPicture; // TODO(edisonn): multiple pages, one page / picture, make it an array member in PdfFileViewer
53 fPicture = NULL; in PdfFileViewer()
57 SkSafeUnref(fPicture); in ~PdfFileViewer()
81 if (!fPicture) { in onDrawContent()
82 fPicture = LoadPdf(fFilename.c_str()); in onDrawContent()
84 if (fPicture) { in onDrawContent()
85 canvas->drawPicture(*fPicture); in onDrawContent()
DSamplePicture.cpp85 fPicture = recorder.endRecording(); in PictureView()
94 fPicture->unref(); in ~PictureView()
173 canvas->drawPicture(fPicture); in onDrawContent()
192 SkPicture* fPicture; member in PictureView
/external/chromium_org/third_party/skia/src/core/
DSkPictureShader.cpp24 , fPicture(SkRef(picture)) in SkPictureShader()
35 fPicture = SkPicture::CreateFromBuffer(buffer); in SkPictureShader()
40 fPicture->unref(); in ~SkPictureShader()
67 fPicture->flatten(buffer); in flatten()
71 SkASSERT(fPicture && !fPicture->cullRect().isEmpty()); in refBitmapShader()
118 canvas.drawPicture(fPicture); in refBitmapShader()
203 fPicture ? fPicture->cullRect().fLeft : 0, in toString()
204 fPicture ? fPicture->cullRect().fTop : 0, in toString()
205 fPicture ? fPicture->cullRect().fRight : 0, in toString()
206 fPicture ? fPicture->cullRect().fBottom : 0); in toString()
/external/skia/src/gpu/
DGrPictureUtils.cpp34 fPicture = picture; in GrGatherDevice()
39 fInfo.fSaveLayerOpID = fPicture->EXPERIMENTAL_curOpID(); in GrGatherDevice()
126 device->fInfo.fRestoreOpID = fPicture->EXPERIMENTAL_curOpID(); in drawDevice()
167 const SkPicture *fPicture; member in GrGatherDevice
193 return SkNEW_ARGS(GrGatherDevice, (info.width(), info.height(), fPicture, in onCreateDevice()
220 , fPicture(pict) { in GrGatherCanvas()
224 if (NULL == fPicture || 0 == fPicture->width() || 0 == fPicture->height()) { in gather()
228 this->clipRect(SkRect::MakeWH(SkIntToScalar(fPicture->width()), in gather()
229 SkIntToScalar(fPicture->height())), in gather()
231 this->drawPicture(fPicture); in gather()
[all …]
/external/chromium_org/third_party/skia/gm/
Dpicture.cpp42 PictureGM() : fPicture(make_picture()) {} in PictureGM()
59 canvas->drawPicture(fPicture); in onDraw()
62 canvas->drawPicture(fPicture, &matrix, NULL); in onDraw()
65 canvas->drawPicture(fPicture, &matrix, &paint); in onDraw()
69 canvas->drawPicture(fPicture, &matrix, &paint); in onDraw()
73 SkAutoTUnref<SkPicture> fPicture; member in PictureGM
Dpictureimagefilter.cpp36 fPicture.reset(recorder.endRecording()); in makePicture()
60 SkAutoTUnref<SkImageFilter> pictureSource(SkPictureImageFilter::Create(fPicture)); in onDraw()
61 … SkAutoTUnref<SkImageFilter> pictureSourceSrcRect(SkPictureImageFilter::Create(fPicture, srcRect)); in onDraw()
62 …utoTUnref<SkImageFilter> pictureSourceEmptyRect(SkPictureImageFilter::Create(fPicture, emptyRect)); in onDraw()
88 SkAutoTUnref<SkPicture> fPicture; member in PictureImageFilterGM
/external/chromium_org/third_party/skia/dm/
DDMSKPTask.cpp18 , fPicture(SkRef(pic)) in SKPTask()
22 const int width = SkTMin(SkScalarCeilToInt(fPicture->cullRect().width()), FLAGS_skpMaxWidth), in draw()
23 height = SkTMin(SkScalarCeilToInt(fPicture->cullRect().height()), FLAGS_skpMaxHeight); in draw()
26 DrawPicture(*fPicture, &bitmap); in draw()
DDMPDFTask.cpp39 , fPicture(SkRef(picture)) in PDFTask()
80 SinglePagePDF pdf(fPicture->cullRect().width(), fPicture->cullRect().height()); in draw()
82 fPicture->playback(pdf.canvas()); in draw()
DDMQuiltTask.cpp40 , fPicture(picture) in Tile()
49 fPicture.playback(&tileCanvas); in run()
57 const SkPicture& fPicture; member in DM::Tile
/external/skia/gm/
Dpictureimagefilter.cpp35 fPicture.reset(recorder.endRecording()); in makePicture()
59 SkAutoTUnref<SkImageFilter> pictureSource(SkPictureImageFilter::Create(fPicture)); in onDraw()
60 … SkAutoTUnref<SkImageFilter> pictureSourceSrcRect(SkPictureImageFilter::Create(fPicture, srcRect)); in onDraw()
61 …utoTUnref<SkImageFilter> pictureSourceEmptyRect(SkPictureImageFilter::Create(fPicture, emptyRect)); in onDraw()
87 SkAutoTUnref<SkPicture> fPicture; member in PictureImageFilterGM
/external/chromium_org/third_party/skia/src/gpu/
DGrPictureUtils.h21 SaveLayerInfo() : fPicture(NULL), fPaint(NULL) {} in SaveLayerInfo()
22 ~SaveLayerInfo() { SkSafeUnref(fPicture); SkDELETE(fPaint); } in ~SaveLayerInfo()
32 const SkPicture* fPicture; variable
DGrLayerHoister.cpp82 const SkPicture* pict = info.fPicture ? info.fPicture : topLevelPicture; in FindLayersToHoist()
114 info->fPicture = pict; in FindLayersToHoist()
174 const SkPicture* pict = atlased[i].fPicture; in DrawLayers()
215 const SkPicture* pict = nonAtlased[i].fPicture; in DrawLayers()
270 unlock_layer_in_cache(layerCache, atlased[i].fPicture, atlased[i].fLayer); in UnlockLayers()
274 unlock_layer_in_cache(layerCache, nonAtlased[i].fPicture, nonAtlased[i].fLayer); in UnlockLayers()
DGrPictureUtils.cpp126 dst.fPicture = src.fPicture ? src.fPicture : static_cast<const SkPicture*>(dp.picture); in trackSaveLayers()
127 dst.fPicture->ref(); in trackSaveLayers()
185 SkASSERT(NULL == slInfo.fPicture); // This layer is in the top-most picture in popSaveBlock()
/external/chromium_org/third_party/skia/debugger/
DSkDebugger.h95 return NULL == fPicture ? SkRect::MakeEmpty() : fPicture->cullRect(); in pictureCull()
133 SkPicture* fPicture; variable

123