Home
last modified time | relevance | path

Searched refs:contentBounds (Results 1 – 9 of 9) sorted by relevance

/third_party/skia/gm/
Dcrop_imagefilter.cpp65 SkRect* outputBounds, SkRect* cropRect, SkRect* contentBounds) { in get_example_rects() argument
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 = make_disjoint(*cropRect, 0.0f, 0.075f); in get_example_rects()
[all …]
/third_party/skia/src/effects/imagefilters/
DSkCropImageFilter.cpp40 const skif::LayerSpace<SkIRect>& contentBounds,
45 const skif::LayerSpace<SkIRect>& contentBounds) const override;
116 const skif::LayerSpace<SkIRect>& contentBounds, in onGetInputLayerBounds() argument
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()
/third_party/skia/src/core/
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()
497 contentBounds) in visitInputLayerBounds()
510 const skif::Mapping& mapping, const skif::LayerSpace<SkIRect>& contentBounds) const { in visitOutputLayerBounds()
515 return contentBounds; in visitOutputLayerBounds()
524 filter ? as_IFB(filter)->onGetOutputLayerBounds(mapping, contentBounds) in visitOutputLayerBounds()
[all …]
DSkImageFilter_Base.h100 const skif::Mapping& mapping, const skif::ParameterSpace<SkRect>& contentBounds) const;
228 const skif::LayerSpace<SkIRect>& contentBounds) const;
233 const skif::Mapping& mapping, const skif::LayerSpace<SkIRect>& contentBounds) const;
409 const skif::LayerSpace<SkIRect>& contentBounds,
428 const skif::Mapping& mapping, const skif::LayerSpace<SkIRect>& contentBounds) const;
DSkCanvas.cpp692 const skif::ParameterSpace<SkRect>* contentBounds, in compute_decomposition_center() argument
695 SkRect rect = contentBounds ? SkRect(*contentBounds) : SkRect::Make(SkIRect(targetOutput)); in compute_decomposition_center()
697 if (!contentBounds) { in compute_decomposition_center()
716 const skif::ParameterSpace<SkRect>* contentBounds = nullptr, in get_layer_mapping_and_bounds() argument
731 compute_decomposition_center(dstToLocal, contentBounds, targetOutput); in get_layer_mapping_and_bounds()
735 contentBounds = nullptr; in get_layer_mapping_and_bounds()
763 layerBounds = as_IFB(filter)->getInputBounds(mapping, targetOutput, contentBounds); in get_layer_mapping_and_bounds()
769 contentBounds); in get_layer_mapping_and_bounds()
775 if (contentBounds) { in get_layer_mapping_and_bounds()
778 skif::LayerSpace<SkIRect> knownBounds = mapping.paramToLayer(*contentBounds).roundOut(); in get_layer_mapping_and_bounds()
/third_party/skia/samplecode/
DSampleFilterBounds.cpp197 skif::ParameterSpace<SkRect> contentBounds(localContentRect); in onDrawContent() local
206 canvas->drawPath(create_axis_path(SkRect(mapping.paramToLayer(contentBounds)), 20.f), in onDrawContent()
223 mapping, targetOutput, &contentBounds); in onDrawContent()
237 layerOnly, contentBounds); in onDrawContent()
241 float y = print_info(canvas, SkIRect(mapping.paramToLayer(contentBounds).roundOut()), in onDrawContent()
/third_party/skia/src/gpu/gl/
DGrGLOpsRenderPass.h33 void set(GrRenderTarget*, bool useMSAASurface, const SkIRect& contentBounds, GrSurfaceOrigin,
DGrGLOpsRenderPass.cpp20 void GrGLOpsRenderPass::set(GrRenderTarget* rt, bool useMSAASurface, const SkIRect& contentBounds, in set() argument
29 fContentBounds = contentBounds; in set()
/third_party/cef/tests/cefclient/browser/
Droot_window_mac.mm431 NSRect contentBounds = [contentView bounds];
442 NSRect button_rect = contentBounds;
449 contentBounds.size.height -= URLBAR_HEIGHT;
496 0, contentBounds.size.width,
497 contentBounds.size.height);