/external/chromium_org/third_party/skia/tools/ |
D | PictureRenderer.cpp | 61 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/ |
D | SkPictureImageFilter.cpp | 17 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/ |
D | PictureRenderer.cpp | 58 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 …]
|
D | PdfRenderer.cpp | 17 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()
|
D | PdfRenderer.h | 38 : fPicture(NULL) in PdfRenderer() 47 SkPicture* fPicture; variable
|
/external/skia/src/core/ |
D | SkPictureShader.cpp | 24 , 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/ |
D | DMSKPTask.cpp | 9 : 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()
|
D | DMPDFTask.cpp | 39 , 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/ |
D | SkPictureImageFilter.cpp | 17 , 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/ |
D | SamplePdfFileViewer.cpp | 35 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()
|
D | SamplePicture.cpp | 86 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/ |
D | SamplePdfFileViewer.cpp | 35 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()
|
D | SamplePicture.cpp | 85 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/ |
D | SkPictureShader.cpp | 24 , 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/ |
D | GrPictureUtils.cpp | 34 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/ |
D | picture.cpp | 42 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
|
D | pictureimagefilter.cpp | 36 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/ |
D | DMSKPTask.cpp | 18 , 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()
|
D | DMPDFTask.cpp | 39 , fPicture(SkRef(picture)) in PDFTask() 80 SinglePagePDF pdf(fPicture->cullRect().width(), fPicture->cullRect().height()); in draw() 82 fPicture->playback(pdf.canvas()); in draw()
|
D | DMQuiltTask.cpp | 40 , fPicture(picture) in Tile() 49 fPicture.playback(&tileCanvas); in run() 57 const SkPicture& fPicture; member in DM::Tile
|
/external/skia/gm/ |
D | pictureimagefilter.cpp | 35 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/ |
D | GrPictureUtils.h | 21 SaveLayerInfo() : fPicture(NULL), fPaint(NULL) {} in SaveLayerInfo() 22 ~SaveLayerInfo() { SkSafeUnref(fPicture); SkDELETE(fPaint); } in ~SaveLayerInfo() 32 const SkPicture* fPicture; variable
|
D | GrLayerHoister.cpp | 82 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()
|
D | GrPictureUtils.cpp | 126 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/ |
D | SkDebugger.h | 95 return NULL == fPicture ? SkRect::MakeEmpty() : fPicture->cullRect(); in pictureCull() 133 SkPicture* fPicture; variable
|