Home
last modified time | relevance | path

Searched refs:contentBounds (Results 1 - 8 of 8) sorted by relevance

/third_party/skia/gm/
H A Dcrop_imagefilter.cpp65 SkRect* outputBounds, SkRect* cropRect, SkRect* contentBounds) { in get_example_rects()
92 *contentBounds = make_overlap(*cropRect, 0.075f, -0.75f); in get_example_rects()
93 SkASSERT(contentBounds->intersects(*cropRect) && in get_example_rects()
94 !contentBounds->contains(*cropRect) && in get_example_rects()
95 !cropRect->contains(*contentBounds)); in get_example_rects()
98 *contentBounds = make_inset(*cropRect, 0.075f, 0.075f); in get_example_rects()
99 SkASSERT(cropRect->contains(*contentBounds)); in get_example_rects()
102 *contentBounds = make_outset(*cropRect, 0.1f, 0.1f); in get_example_rects()
103 SkASSERT(contentBounds->contains(*cropRect)); in get_example_rects()
106 *contentBounds in get_example_rects()
64 get_example_rects(CropRelation outputRelation, CropRelation inputRelation, bool hintContent, SkRect* outputBounds, SkRect* cropRect, SkRect* contentBounds) get_example_rects() argument
117 make_image(SkCanvas* canvas, const SkRect* contentBounds) make_image() argument
170 SkRect outputBounds, cropRect, contentBounds; draw_example() local
[all...]
/third_party/skia/src/effects/imagefilters/
H A DSkCropImageFilter.cpp40 const skif::LayerSpace<SkIRect>& contentBounds,
45 const skif::LayerSpace<SkIRect>& contentBounds) const override;
116 const skif::LayerSpace<SkIRect>& contentBounds, in onGetInputLayerBounds()
132 return this->visitInputLayerBounds(mapping, requiredInput, contentBounds); in onGetInputLayerBounds()
138 const skif::LayerSpace<SkIRect>& contentBounds) const { in onGetOutputLayerBounds()
143 skif::LayerSpace<SkIRect> childOutput = this->visitOutputLayerBounds(mapping, contentBounds); in onGetOutputLayerBounds()
113 onGetInputLayerBounds( const skif::Mapping& mapping, const skif::LayerSpace<SkIRect>& desiredOutput, const skif::LayerSpace<SkIRect>& contentBounds, VisitChildren recurse) const onGetInputLayerBounds() argument
/third_party/skia/src/core/
H A DSkImageFilter.cpp276 skif::LayerSpace<SkIRect> contentBounds = in getInputBounds() local
282 mapping, desiredBounds, contentBounds); in getInputBounds()
291 if (!requiredInput.intersect(contentBounds)) { in getInputBounds()
300 const skif::Mapping& mapping, const skif::ParameterSpace<SkRect>& contentBounds) const { in getOutputBounds()
302 skif::LayerSpace<SkRect> layerContent = mapping.paramToLayer(contentBounds); in getOutputBounds()
476 const skif::LayerSpace<SkIRect>& contentBounds) const { in visitInputLayerBounds()
491 // TODO (michaelludwig) - Right now contentBounds is applied conditionally at the end of in visitInputLayerBounds()
497 contentBounds) in visitInputLayerBounds()
510 const skif::Mapping& mapping, const skif::LayerSpace<SkIRect>& contentBounds) const { in visitOutputLayerBounds()
513 // its output size from something other than the implicit source contentBounds, i in visitOutputLayerBounds()
536 onGetInputLayerBounds( const skif::Mapping& mapping, const skif::LayerSpace<SkIRect>& desiredOutput, const skif::LayerSpace<SkIRect>& contentBounds, VisitChildren recurse) const onGetInputLayerBounds() argument
[all...]
H A DSkImageFilter_Base.h77 * an image layer covering the 'contentBounds'. The 'mapping' defines how the content will be
91 * @param contentBounds The local-space bounds of the non-transparent content that would be
96 * content contained by 'contentBounds' and then drawn with 'mapping' to the root
100 const skif::Mapping& mapping, const skif::ParameterSpace<SkRect>& contentBounds) const;
224 // onGetInputLayerBounds with the provided 'desiredOutput' and 'contentBounds'. Automatically
228 const skif::LayerSpace<SkIRect>& contentBounds) const;
230 // onGetOutputLayerBounds with the provided 'contentBounds'. Automatically handles null input
233 const skif::Mapping& mapping, const skif::LayerSpace<SkIRect>& contentBounds) const;
409 const skif::LayerSpace<SkIRect>& contentBounds,
414 * sized to 'contentBounds'
[all...]
H A DSkCanvas.cpp697 const skif::ParameterSpace<SkRect>* contentBounds, in compute_decomposition_center()
700 SkRect rect = contentBounds ? SkRect(*contentBounds) : SkRect::Make(SkIRect(targetOutput)); in compute_decomposition_center()
702 if (!contentBounds) { in compute_decomposition_center()
721 const skif::ParameterSpace<SkRect>* contentBounds = nullptr, in get_layer_mapping_and_bounds()
736 compute_decomposition_center(dstToLocal, contentBounds, targetOutput); in get_layer_mapping_and_bounds()
740 contentBounds = nullptr; in get_layer_mapping_and_bounds()
768 layerBounds = as_IFB(filter)->getInputBounds(mapping, targetOutput, contentBounds); in get_layer_mapping_and_bounds()
774 contentBounds); in get_layer_mapping_and_bounds()
780 if (contentBounds) { in get_layer_mapping_and_bounds()
695 compute_decomposition_center( const SkMatrix& dstToLocal, const skif::ParameterSpace<SkRect>* contentBounds, const skif::DeviceSpace<SkIRect>& targetOutput) compute_decomposition_center() argument
[all...]
/third_party/skia/samplecode/
H A DSampleFilterBounds.cpp197 skif::ParameterSpace<SkRect> contentBounds(localContentRect);
206 canvas->drawPath(create_axis_path(SkRect(mapping.paramToLayer(contentBounds)), 20.f),
223 mapping, targetOutput, &contentBounds);
234 // when contentBounds is provided as a hint in local/parameter space.
237 layerOnly, contentBounds);
241 float y = print_info(canvas, SkIRect(mapping.paramToLayer(contentBounds).roundOut()),
/third_party/skia/src/gpu/gl/
H A DGrGLOpsRenderPass.h33 void set(GrRenderTarget*, bool useMSAASurface, const SkIRect& contentBounds, GrSurfaceOrigin,
H A DGrGLOpsRenderPass.cpp20 void GrGLOpsRenderPass::set(GrRenderTarget* rt, bool useMSAASurface, const SkIRect& contentBounds, in set() argument
29 fContentBounds = contentBounds; in set()

Completed in 8 milliseconds