/frameworks/base/libs/hwui/renderstate/ |
Scissor.cpp | 16 #include "renderstate/Scissor.h" 25 Scissor::Scissor() 33 bool Scissor::setEnabled(bool enabled) { 46 bool Scissor::set(GLint x, GLint y, GLint width, GLint height) { 76 void Scissor::set(int viewportHeight, const Rect& clip) { 96 void Scissor::reset() { 100 void Scissor::invalidate() { 106 void Scissor::dump() { 107 ALOGD("Scissor: enabled %d, %d %d %d %d" [all...] |
Scissor.h | 27 class Scissor { 37 Scissor();
|
RenderState.h | 25 #include "renderstate/Scissor.h" 113 Scissor& scissor() { return *mScissor; } function in class:android::uirenderer::RenderState 136 Scissor* mScissor = nullptr;
|
RenderState.cpp | 53 mScissor = new Scissor(); 210 scissor().invalidate(); 220 scissor().setEnabled(false); 483 scissor().dump();
|
/external/mesa3d/src/mesa/main/ |
scissor.c | 30 #include "main/scissor.h" 34 * Set scissor rectangle data directly in ScissorArray 37 * supplied data. It also does \b not call \c dd_function_table::Scissor. 45 if (x == ctx->Scissor.ScissorArray[idx].X && 46 y == ctx->Scissor.ScissorArray[idx].Y && 47 width == ctx->Scissor.ScissorArray[idx].Width && 48 height == ctx->Scissor.ScissorArray[idx].Height) 52 ctx->Scissor.ScissorArray[idx].X = x; 53 ctx->Scissor.ScissorArray[idx].Y = y; 54 ctx->Scissor.ScissorArray[idx].Width = width [all...] |
framebuffer.c | 313 /* update scissor / window bounds */ 360 * Given a bounding box, intersect the bounding box with the scissor of 372 if (ctx->Scissor.EnableFlags & (1u << idx)) { 373 if (ctx->Scissor.ScissorArray[idx].X > bbox[0]) { 374 bbox[0] = ctx->Scissor.ScissorArray[idx].X; 376 if (ctx->Scissor.ScissorArray[idx].Y > bbox[2]) { 377 bbox[2] = ctx->Scissor.ScissorArray[idx].Y; 379 if (ctx->Scissor.ScissorArray[idx].X + ctx->Scissor.ScissorArray[idx].Width < bbox[1]) { 380 bbox[1] = ctx->Scissor.ScissorArray[idx].X + ctx->Scissor.ScissorArray[idx].Width [all...] |
get.c | 721 v->value_int_4[0] = ctx->Scissor.ScissorArray[0].X; 722 v->value_int_4[1] = ctx->Scissor.ScissorArray[0].Y; 723 v->value_int_4[2] = ctx->Scissor.ScissorArray[0].Width; 724 v->value_int_4[3] = ctx->Scissor.ScissorArray[0].Height; 728 v->value_bool = ctx->Scissor.EnableFlags & 1; [all...] |
attrib.c | 49 #include "scissor.h" 114 GLbitfield Scissor; 369 attr->Scissor = ctx->Scissor.EnableFlags; 485 (void*)&ctx->Scissor)) 674 if (ctx->Scissor.EnableFlags != enable->Scissor) { 678 _mesa_set_enablei(ctx, GL_SCISSOR_TEST, i, (enable->Scissor >> i) & 1); 1297 const struct gl_scissor_attrib *scissor; local [all...] |
enable.c | 671 if (newEnabled != ctx->Scissor.EnableFlags) { 673 ctx->Scissor.EnableFlags = newEnabled; [all...] |
/external/mesa3d/src/mesa/state_tracker/ |
st_scissor.c | 40 blit->num_window_rectangles = ctx->Scissor.NumWindowRects; 42 ctx->Scissor.WindowRectMode == GL_INCLUSIVE_EXT; 44 const struct gl_scissor_rect *src_rect = &ctx->Scissor.WindowRects[i];
|
st_atom_scissor.c | 42 * Scissor depends on the scissor box, and the framebuffer dimensions. 47 struct pipe_scissor_state scissor[PIPE_MAX_VIEWPORTS]; local 57 scissor[i].minx = 0; 58 scissor[i].miny = 0; 59 scissor[i].maxx = fb_width; 60 scissor[i].maxy = fb_height; 62 if (ctx->Scissor.EnableFlags & (1 << i)) { 64 GLint xmax = MAX2(0, ctx->Scissor.ScissorArray[i].X + ctx->Scissor.ScissorArray[i].Width) 107 const struct gl_scissor_attrib *scissor = &ctx->Scissor; local [all...] |
st_cb_clear.c | 289 /* draw quad matching scissor rect. 311 * Return if the scissor must be enabled during the clear. 316 const struct gl_scissor_rect *scissor = &ctx->Scissor.ScissorArray[0]; local 318 return (ctx->Scissor.EnableFlags & 1) && 319 (scissor->X > 0 || 320 scissor->Y > 0 || 321 scissor->X + scissor->Width < (int)rb->Width || 322 scissor->Y + scissor->Height < (int)rb->Height) [all...] |
st_atom_rasterizer.c | 262 raster->scissor = ctx->Scissor.EnableFlags;
|
/external/mesa3d/src/glx/apple/ |
apple_glapi.c | 80 __ogl_framework_api->Scissor(x, y, width, height);
|
/external/mesa3d/src/mesa/drivers/dri/i915/ |
i830_state.c | 539 ctx->Scissor.ScissorArray[0].X, ctx->Scissor.ScissorArray[0].Y, 540 ctx->Scissor.ScissorArray[0].Width, ctx->Scissor.ScissorArray[0].Height); 543 x1 = ctx->Scissor.ScissorArray[0].X; 544 y1 = ctx->DrawBuffer->Height - (ctx->Scissor.ScissorArray[0].Y 545 + ctx->Scissor.ScissorArray[0].Height); 546 x2 = ctx->Scissor.ScissorArray[0].X 547 + ctx->Scissor.ScissorArray[0].Width - 1; 548 y2 = y1 + ctx->Scissor.ScissorArray[0].Height - 1 [all...] |
i915_state.c | 505 ctx->Scissor.ScissorArray[0].X, ctx->Scissor.ScissorArray[0].Y, 506 ctx->Scissor.ScissorArray[0].Width, ctx->Scissor.ScissorArray[0].Height); 509 x1 = ctx->Scissor.ScissorArray[0].X; 510 y1 = ctx->DrawBuffer->Height - (ctx->Scissor.ScissorArray[0].Y 511 + ctx->Scissor.ScissorArray[0].Height); 512 x2 = ctx->Scissor.ScissorArray[0].X 513 + ctx->Scissor.ScissorArray[0].Width - 1; 514 y2 = y1 + ctx->Scissor.ScissorArray[0].Height - 1 [all...] |
/external/mesa3d/src/mesa/drivers/dri/i965/ |
brw_clear.c | 78 * Returns true if the scissor is a noop (cuts out nothing). 121 if ((ctx->Scissor.EnableFlags & 1) && !noop_scissor(fb)) { 261 bool partial_clear = ctx->Scissor.EnableFlags && !noop_scissor(fb);
|
brw_sf_state.c | 56 * values to program the viewport and scissor is fine as long as the 84 /* The scissor only needs to handle the intersection of drawable 85 * and scissor rect, since there are no longer cliprects for shared 94 /* If the scissor was out of bounds and got clamped to 0 97 * anything. Instead, just provide a min > max scissor inside 100 sfv->scissor.xmin = 1; 101 sfv->scissor.xmax = 0; 102 sfv->scissor.ymin = 1; 103 sfv->scissor.ymax = 0; 106 sfv->scissor.xmin = ctx->DrawBuffer->_Xmin [all...] |
gen8_sf_state.c | 309 if (ctx->Scissor.EnableFlags)
|
/external/skia/src/gpu/gl/ |
GrGLIRect.h | 45 GR_GL_CALL(gl, Scissor(fLeft, fBottom, fWidth, fHeight));
|
GrGLAssembleInterface.cpp | 196 GET_PROC(Scissor); 683 GET_PROC(Scissor); [all...] |
/external/mesa3d/src/mesa/drivers/dri/radeon/ |
radeon_common.c | 37 - Scissor implementation 98 if (radeon->state.scissor.enabled) 108 GLint x = ctx->Scissor.ScissorArray[0].X, y = ctx->Scissor.ScissorArray[0].Y; 109 GLsizei w = ctx->Scissor.ScissorArray[0].Width, h = ctx->Scissor.ScissorArray[0].Height; 132 rmesa->state.scissor.rect.x1 = CLAMP(x1, min_x, max_x); 133 rmesa->state.scissor.rect.y1 = CLAMP(y1, min_y, max_y); 134 rmesa->state.scissor.rect.x2 = CLAMP(x2, min_x, max_x); 135 rmesa->state.scissor.rect.y2 = CLAMP(y2, min_y, max_y) [all...] |
/external/mesa3d/src/mesa/drivers/common/ |
driverfuncs.c | 152 driver->Scissor = NULL; 250 ctx->Driver.Enable(ctx, GL_SCISSOR_TEST, ctx->Scissor.EnableFlags); 278 ctx->Driver.Scissor(ctx);
|
meta.h | 120 struct gl_scissor_attrib Scissor;
|
/external/clang/lib/CodeGen/ |
CGRecordLayoutBuilder.cpp | 66 /// SCISSOR. If LLVM were updated to read base types (which it probably 68 /// type anyway) then we could eliminate the SCISSOR. 80 enum InfoKind { VFPtr, VBPtr, Field, Base, VBase, Scissor } Kind; 477 // before the nvsize and set the scissor offset to that, instead of the 491 Members.push_back(MemberInfo(ScissorOffset, MemberInfo::Scissor, nullptr, 552 // Only members with data and the scissor can cut into tail padding. 553 if (!Member->Data && Member->Kind != MemberInfo::Scissor) [all...] |