Searched defs:clip (Results 76 - 100 of 176) sorted by relevance

12345678

/external/skia/src/gpu/text/
H A DGrAtlasTextContext.cpp77 const GrClip& clip, const SkPaint& skPaint,
159 clip, viewMatrix, clipBounds, x, y);
285 const GrClip& clip, const SkPaint& skPaint,
300 blob->flushThrowaway(context, rtc, props, fDistanceAdjustTable.get(), paint, clip,
306 GrTextUtils::DrawTextAsPath(context, rtc, clip, paint, viewMatrix, text, byteLength, x, y,
311 const GrClip& clip, const SkPaint& skPaint,
328 blob->flushThrowaway(context, rtc, props, fDistanceAdjustTable.get(), paint, clip,
334 GrTextUtils::DrawPosTextAsPath(context, rtc, props, clip, paint, viewMatrix, text, byteLength,
76 drawTextBlob(GrContext* context, GrRenderTargetContext* rtc, const GrClip& clip, const SkPaint& skPaint, const SkMatrix& viewMatrix, const SkSurfaceProps& props, const SkTextBlob* blob, SkScalar x, SkScalar y, SkDrawFilter* drawFilter, const SkIRect& clipBounds) argument
284 drawText(GrContext* context, GrRenderTargetContext* rtc, const GrClip& clip, const SkPaint& skPaint, const SkMatrix& viewMatrix, const SkSurfaceProps& props, const char text[], size_t byteLength, SkScalar x, SkScalar y, const SkIRect& regionClipBounds) argument
310 drawPosText(GrContext* context, GrRenderTargetContext* rtc, const GrClip& clip, const SkPaint& skPaint, const SkMatrix& viewMatrix, const SkSurfaceProps& props, const char text[], size_t byteLength, const SkScalar pos[], int scalarsPerPosition, const SkPoint& offset, const SkIRect& regionClipBounds) argument
/external/skia/src/utils/
H A DSkCanvasStateUtils.cpp133 static void setup_MC_state(SkMCState* state, const SkMatrix& matrix, const SkRegion& clip) { argument
143 * capture the clip
152 if (!clip.isEmpty()) {
153 // only returns the b/w clip so aa clips fail
154 SkRegion::Iterator clip_iterator(clip);
163 // allocate memory for the clip then and copy them to the struct
173 // Check the clip can be decomposed into rectangles (i.e. no soft clips).
180 // decompose the total matrix and clip
226 layer.clip(&rgn);
249 // reconstruct the clip
250 SkRegion clip; local
[all...]
/external/skia/tests/
H A DRecordOptsTest.cpp219 SkRect clip = SkRect::MakeWH(SkIntToScalar(50), SkIntToScalar(60)); local
270 recorder.clipRect(clip);
312 recorder.clipRect(clip);
324 recorder.clipRect(clip);
337 // Test that currently we do not fold alphas for patterns without the clip. This is just not
H A DAAClipTest.cpp183 SkAAClip clip; local
189 clip.setPath(path, nullptr, true);
190 REPORTER_ASSERT(reporter, height == clip.getBounds().height());
203 clip.setPath(path, nullptr, true);
204 REPORTER_ASSERT(reporter, teardrop_height == clip.getBounds().height());
311 SkAAClip clip; local
312 clip.setPath(path, nullptr, 1 == i);
315 clip.copyToMask(&mask);
329 SkAAClip clip; local
330 clip
388 SkAAClip clip; local
[all...]
H A DMatrixClipCollapseTest.cpp18 // overall structure, bodies that draw something and model/clip state changes.
23 // be completely removed by the matrix/clip collapse. Note: every save in
32 // The ModelClip methods output matrix and clip ops in various orders and
34 // expected matrix & clip ops. Note that, currently, the entire clip stack
35 // is output for each MC state so the clip operations accumulate down the
39 // check on clip offsets
40 // - not sure if this is possible. The desire is to verify that the clip
43 // offset stored in the SkPicture to the debugger's clip objects
47 // rendering before and after images. Additionally the matrix/clip collaps
154 emit_clip(SkCanvas* canvas, ClipType clip) argument
194 add_clip(ClipType clip, MatType mat, SkTDArray<DrawType>* expected) argument
325 emit_clip_and_mat(SkCanvas* canvas, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) argument
346 emit_mat_and_clip(SkCanvas* canvas, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) argument
369 emit_double_mat_and_clip(SkCanvas* canvas, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) argument
394 emit_mat_clip_clip(SkCanvas* canvas, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) argument
417 emit_body0(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) argument
438 emit_body1(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) argument
466 emit_body2(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) argument
504 emit_body3(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) argument
552 emit_struct0(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, PFEmitBody emitBody, DrawOpType draw, SkTDArray<DrawType>* expected) argument
568 emit_struct1(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, PFEmitBody emitBody, DrawOpType draw, SkTDArray<DrawType>* expected) argument
591 emit_struct2(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, PFEmitBody emitBody, DrawOpType draw, SkTDArray<DrawType>* expected) argument
620 emit_struct3(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, PFEmitBody emitBody, DrawOpType draw, SkTDArray<DrawType>* expected) argument
[all...]
/external/skia/tools/skiaserve/
H A DRequest.cpp164 // We clip to kMaxWidth / kMaxHeight for performance reasons.
295 // TODO this is really slow and we should cache the matrix and clip
300 SkIRect clip = fDebugCanvas->getCurrentClip(); local
303 info["ClipRect"] = SkDrawCommand::MakeJsonIRect(clip);
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.apache.ant_1.7.1.v20090120-1145/lib/
H A Dant-jmf.jar ... sampled.Clip, int) javax.sound.sampled.Clip clip int loops private void playClip (javax.sound. ...
/external/mesa3d/src/gallium/drivers/softpipe/
H A Dsp_context.h77 struct pipe_clip_state clip; member in struct:softpipe_context
/external/mesa3d/src/gallium/state_trackers/vdpau/
H A Dmixer.c219 struct u_rect rect, clip, *prect; local
311 vl_compositor_set_dst_clip(&vmixer->cstate, RectToPipe(destination_rect, &clip));
/external/skia/experimental/svg/model/
H A DSkSVGDOM.cpp72 SkSVGClip clip; local
74 if (!parser.parseClipPath(&clip)) {
78 node->setAttribute(attr, SkSVGClipValue(clip));
280 { "clip-path" , { SkSVGAttribute::kClipPath , SetClipPathAttribute }},
/external/skia/gm/
H A Ddegeneratesegments.cpp195 const SkRect& clip, SkPaint::Cap cap, SkPaint::Join join,
206 canvas->clipRect(clip);
194 drawPath(SkPath& path, SkCanvas* canvas, SkColor color, const SkRect& clip, SkPaint::Cap cap, SkPaint::Join join, SkPaint::Style style, SkPath::FillType fill, SkScalar strokeWidth) argument
/external/skia/samplecode/
H A DSampleBigGradient.cpp70 void clip(const SkRect& r) { fCanvas->clipRect(r); } function in class:GraphicsPort
140 void updateHandle(Handle hndl, const SkMatrix& ctm, const SkIRect& clip) override {
145 CGContextClipToRect(cg, CGRectMake(clip.x(), clip.y(), clip.width(), clip.height()));
288 port->clip({150, 50, 200, 200});
/external/skia/src/core/
H A DSkEdgeClipper.cpp13 static bool quick_reject(const SkRect& bounds, const SkRect& clip) { argument
14 return bounds.fTop >= clip.fBottom || bounds.fBottom <= clip.fTop;
46 bool SkEdgeClipper::clipLine(SkPoint p0, SkPoint p1, const SkRect& clip) { argument
52 int lineCount = SkLineClipper::ClipLine(pts, clip, lines, fCanCullToTheRight);
92 // Modify pts[] in place so that it is clipped in Y to the clip rect
93 static void chop_quad_in_Y(SkPoint pts[3], const SkRect& clip) { argument
98 if (pts[0].fY < clip.fTop) {
99 if (chopMonoQuadAtY(pts, clip.fTop, &t)) {
103 tmp[2].fY = clip
142 clipMonoQuad(const SkPoint srcPts[3], const SkRect& clip) argument
216 clipQuad(const SkPoint srcPts[3], const SkRect& clip) argument
278 chop_cubic_in_Y(SkPoint pts[4], const SkRect& clip) argument
332 clipMonoCubic(const SkPoint src[4], const SkRect& clip) argument
411 clipCubic(const SkPoint srcPts[4], const SkRect& clip) argument
[all...]
H A DSkMaskFilter.cpp194 bool fillCenter, const SkRasterClip& clip, SkBlitter* blitter) {
195 // if we get here, we need to (possibly) resolve the clip and blitter
196 SkAAClipBlitterWrapper wrapper(clip, blitter);
218 const SkRasterClip& clip, SkBlitter* blitter) const {
225 clip.getBounds(),
230 draw_nine(patch.fMask, patch.fOuterRect, patch.fCenter, true, clip, blitter);
235 const SkRasterClip& clip, SkBlitter* blitter,
245 switch (this->filterRectsToNine(rects, rectCount, matrix, clip.getBounds(), &patch)) {
251 draw_nine(patch.fMask, patch.fOuterRect, patch.fCenter, 1 == rectCount, clip,
264 if (!SkDraw::DrawToMask(devPath, &clip
193 draw_nine(const SkMask& mask, const SkIRect& outerR, const SkIPoint& center, bool fillCenter, const SkRasterClip& clip, SkBlitter* blitter) argument
217 filterRRect(const SkRRect& devRRect, const SkMatrix& matrix, const SkRasterClip& clip, SkBlitter* blitter) const argument
234 filterPath(const SkPath& devPath, const SkMatrix& matrix, const SkRasterClip& clip, SkBlitter* blitter, SkStrokeRec::InitStyle style) const argument
[all...]
H A DSkRegion_path.cpp315 static bool check_inverse_on_empty_return(SkRegion* dst, const SkPath& path, const SkRegion& clip) { argument
317 return dst->set(clip);
323 bool SkRegion::setPath(const SkPath& path, const SkRegion& clip) { argument
326 if (clip.isEmpty()) {
331 return check_inverse_on_empty_return(this, path, clip);
338 return check_inverse_on_empty_return(this, path, clip);
342 int clipTransitions = clip.count_runtype_values(&clipTop, &clipBot);
347 return check_inverse_on_empty_return(this, path, clip);
359 SkScan::FillPath(path, clip, &builder);
/external/skia/src/effects/shadows/
H A DSkSpotShadowMaskFilter.cpp162 const GrClip& clip,
187 return this->directFilterRRectMaskGPU(context, rtContext, std::move(paint), clip,
191 return this->directFilterRRectMaskGPU(context, rtContext, std::move(paint), clip,
201 const GrClip& clip,
308 rtContext->drawShadowRRect(clip, std::move(paint), viewMatrix, spotShadowRRect,
159 directFilterMaskGPU(GrContext* context, GrRenderTargetContext* rtContext, GrPaint&& paint, const GrClip& clip, const SkMatrix& viewMatrix, const SkStrokeRec& strokeRec, const SkPath& path) const argument
198 directFilterRRectMaskGPU(GrContext*, GrRenderTargetContext* rtContext, GrPaint&& paint, const GrClip& clip, const SkMatrix& viewMatrix, const SkStrokeRec& strokeRec, const SkRRect& rrect, const SkRRect& devRRect) const argument
/external/skia/src/gpu/vk/
H A DGrVkGpuCommandBuffer.cpp220 void GrVkGpuCommandBuffer::onClearStencilClip(GrRenderTarget* rt, const GrFixedClip& clip, argument
222 SkASSERT(!clip.hasWindowRectangles());
252 if (!clip.scissorEnabled()) {
255 vkRect = clip.scissorRect();
257 const SkIRect& scissor = clip.scissorRect();
280 if (!clip.scissorEnabled()) {
283 cbInfo.fBounds.join(SkRect::Make(clip.scissorRect()));
287 void GrVkGpuCommandBuffer::onClear(GrRenderTarget* rt, const GrFixedClip& clip, GrColor color) { argument
289 SkASSERT(!clip.hasWindowRectangles());
302 if (cbInfo.fIsEmpty && !clip
[all...]
/external/webp/src/dsp/
H A Dyuv.c22 static WEBP_INLINE uint8_t clip(int v, int max_value) { function
45 VP8kClip[i - YUV_RANGE_MIN] = clip(k, 255);
46 VP8kClip4Bits[i - YUV_RANGE_MIN] = clip((k + 8) >> 4, 15);
57 VP8kClip[i - YUV_RANGE_MIN] = clip(k, 255);
58 VP8kClip4Bits[i - YUV_RANGE_MIN] = clip((k + 8) >> 4, 15);
/external/mesa3d/src/gallium/auxiliary/draw/
H A Ddraw_pipe_clip.c114 static void interp( const struct clip_stage *clip, argument
120 const unsigned nr_attrs = draw_current_shader_outputs(clip->stage.draw);
121 const unsigned pos_attr = draw_current_shader_position_output(clip->stage.draw);
122 const unsigned clip_attr = draw_current_shader_clipvertex_output(clip->stage.draw);
133 /* Interpolate the clip-space coords.
135 interp_attr(dst->clip, t, in->clip, out->clip);
136 /* interpolate the clip-space position */
144 const float *scale = clip
[all...]
/external/mesa3d/src/gallium/drivers/nv30/
H A Dnv30_context.h104 struct pipe_clip_state clip; member in struct:nv30_context
/external/mesa3d/src/gallium/drivers/nv50/
H A Dnv50_context.h148 struct pipe_clip_state clip; member in struct:nv50_context
H A Dnv50_state.c811 const struct pipe_clip_state *clip)
815 memcpy(nv50->clip.ucp, clip->ucp, sizeof(clip->ucp));
810 nv50_set_clip_state(struct pipe_context *pipe, const struct pipe_clip_state *clip) argument
/external/mesa3d/src/gallium/drivers/nvc0/
H A Dnvc0_context.h152 struct pipe_clip_state clip; member in struct:nvc0_context
H A Dnvc0_state.c706 const struct pipe_clip_state *clip)
710 memcpy(nvc0->clip.ucp, clip->ucp, sizeof(clip->ucp));
705 nvc0_set_clip_state(struct pipe_context *pipe, const struct pipe_clip_state *clip) argument
/external/mesa3d/src/gallium/state_trackers/xorg/
H A Dxorg_driver.c583 drmModeClip *clip = alloca(num_cliprects * sizeof(drmModeClip)); local
589 clip[i].x1 = rect->x1;
590 clip[i].y1 = rect->y1;
591 clip[i].x2 = rect->x2;
592 clip[i].y2 = rect->y2;
596 ret = drmModeDirtyFB(ms->fd, ms->fb_id, clip, num_cliprects);

Completed in 4720 milliseconds

12345678