Home | History | Annotate | Download | only in hwui

Lines Matching refs:left

192 void OpenGLRenderer::setupFrameState(float left, float top,
202 mSnapshot->setClip(left, top, right, bottom);
203 mTilingClip.set(left, top, right, bottom);
212 discardFramebuffer(mTilingClip.left, mTilingClip.top, mTilingClip.right, mTilingClip.bottom);
225 return clear(mTilingClip.left, mTilingClip.top,
233 status_t OpenGLRenderer::prepareDirty(float left, float top,
236 setupFrameState(left, top, right, bottom, opaque);
252 void OpenGLRenderer::discardFramebuffer(float left, float top, float right, float bottom) {
257 left <= 0.0f && top <= 0.0f && right >= mWidth && bottom >= mHeight) {
266 status_t OpenGLRenderer::clear(float left, float top, float right, float bottom, bool opaque) {
269 mCaches.setScissor(left, mSnapshot->height - bottom, right - left, bottom - top);
299 mCaches.startTiling(clip.left, windowHeight - clip.bottom,
300 clip.right - clip.left, clip.bottom - clip.top, opaque);
465 info.clipLeft = clip.left;
535 mCaches.setScissor(clip->left, mFirstSnapshot->height - clip->bottom,
536 clip->right - clip->left, clip->bottom - clip->top);
755 glViewport(r.left, r.top, r.right, r.bottom);
780 int OpenGLRenderer::saveLayer(float left, float top, float right, float bottom,
786 createLayer(left, top, right, bottom, alpha, mode, flags, previousFbo);
814 clip.translate(-untransformedBounds.left, -untransformedBounds.top);
836 int OpenGLRenderer::saveLayerDeferred(float left, float top, float right, float bottom,
846 Rect bounds(left, top, right, bottom);
852 mSnapshot->resetTransform(-bounds.left, -bounds.top, 0.0f);
853 mSnapshot->resetClip(clip.left, clip.top, clip.right, clip.bottom);
910 * buffer is left untouched until the first drawing operation. Only when
913 bool OpenGLRenderer::createLayer(float left, float top, float right, float bottom,
915 LAYER_LOGD("Requesting layer %.2fx%.2f", right - left, bottom - top);
922 Rect bounds(left, top, right, bottom);
966 glCopyTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, bounds.left,
985 mSnapshot->resetTransform(-bounds.left, -bounds.top, 0.0f);
986 mSnapshot->resetClip(clip.left, clip.top, clip.right, clip.bottom);
1010 mCaches.setScissor(clip.left - 1.0f, bounds.getHeight() - clip.bottom - 1.0f,
1056 drawColorRect(rect.left, rect.top, rect.right, rect.bottom,
1069 dirtyLayer(rect.left, rect.top, rect.right, rect.bottom, *previous->transform);
1078 dirtyLayer(rect.left, rect.top, rect.right, rect.bottom);
1115 const float x = (int) floorf(rect.left + currentTransform().getTranslateX() + 0.5f);
1122 setupDrawModelView(rect.left, rect.top, rect.right, rect.bottom);
1133 resetDrawTextureTexCoords(texCoords.left, texCoords.top,
1136 float x = rect.left;
1145 x = (int) floorf(rect.left + currentTransform().getTranslateX() + 0.5f);
1230 const float x = (int) floorf(rect.left + currentTransform().getTranslateX() + 0.5f);
1237 setupDrawModelViewTranslate(rect.left, rect.top, rect.right, rect.bottom);
1244 const float u1 = r->left * texX;
1250 TextureVertex::set(mesh++, r->left, r->top, u1, v1);
1252 TextureVertex::set(mesh++, r->left, r->bottom, u1, v2);
1297 Rect r(rects[i].left, rects[i].top, rects[i].right, rects[i].bottom);
1298 drawColorRect(r.left, r.top, r.right, r.bottom, colors[offset + (i & 0x1)],
1321 void OpenGLRenderer::dirtyLayer(const float left, const float top,
1324 Rect bounds(left, top, right, bottom);
1330 void OpenGLRenderer::dirtyLayer(const float left, const float top,
1333 Rect bounds(left, top, right, bottom);
1341 android::Rect dirty(bounds.left, bounds.top, bounds.right, bounds.bottom);
1383 Vertex::set(vertex++, bounds->left, bounds->top);
1385 Vertex::set(vertex++, bounds->left, bounds->bottom);
1439 if (currentClip.left > state.mBounds.left) flags |= kClipSide_Left;
1472 mSnapshot->setClip(state.mClip.left, state.mClip.top,
1487 mSnapshot->setClip(clipRect->left, clipRect->top, clipRect->right, clipRect->bottom);
1546 if (mCaches.setScissor(clip.left, mSnapshot->height - clip.bottom,
1623 bool OpenGLRenderer::quickRejectNoScissor(float left, float top, float right, float bottom,
1625 if (mSnapshot->isIgnored() || bottom <= top || right <= left) {
1629 Rect r(left, top, right, bottom);
1642 bool OpenGLRenderer::quickRejectPreStroke(float left, float top, float right, float bottom,
1650 return quickReject(left - outset, top - outset, right + outset, bottom + outset, snapOut);
1652 return quickReject(left, top, right, bottom, snapOut);
1656 bool OpenGLRenderer::quickReject(float left, float top, float right, float bottom, bool snapOut) {
1658 if (quickRejectNoScissor(left, top, right, bottom, snapOut, &clipRequired)) {
1676 bool OpenGLRenderer::clipRect(float left, float top, float right, float bottom, SkRegion::Op op) {
1678 bool clipped = mSnapshot->clip(left, top, right, bottom, op);
1686 path.addRect(left, top, right, bottom);
1706 clip.setRect(bounds->left, bounds->top, bounds->right, bounds->bottom);
1867 void OpenGLRenderer::setupDrawModelViewTranslate(float left, float top, float right, float bottom,
1869 mModelView.loadTranslate(left, top, 0.0f);
1872 if (mTrackDirtyRegions) dirtyLayer(left, top, right, bottom, currentTransform());
1875 if (mTrackDirtyRegions) dirtyLayer(left, top, right, bottom);
1883 void OpenGLRenderer::setupDrawModelView(float left, float top, float right, float bottom,
1886 mModelView.loadTranslate(left, top, 0.0f);
1887 mModelView.scale(right - left, bottom - top, 1.0f);
1891 bool dirty = right - left > 0.0f && bottom - top > 0.0f;
1895 dirtyLayer(left, top, right, bottom, currentTransform());
1899 left, top, right, bottom);
2063 void OpenGLRenderer::drawAlphaBitmap(Texture* texture, float left, float top, SkPaint* paint) {
2070 float x = left;
2077 x = (int) floorf(left + currentTransform().getTranslateX() + 0.5f);
2113 const float x = (int) floorf(bounds.left + 0.5f);
2131 status_t OpenGLRenderer::drawBitmap(SkBitmap* bitmap, float left, float top, SkPaint* paint) {
2132 const float right = left + bitmap->width();
2135 if (quickReject(left, top, right, bottom)) {
2145 drawAlphaBitmap(texture, left, top, paint);
2147 drawTextureRect(left, top, right, bottom, texture, paint);
2158 if (quickReject(r.left, r.top, r.right, r.bottom)) {
2181 status_t OpenGLRenderer::drawBitmapData(SkBitmap* bitmap, float left, float top, SkPaint* paint) {
2182 const float right = left + bitmap->width();
2185 if (quickReject(left, top, right, bottom)) {
2194 drawAlphaBitmap(texture, left, top, paint);
2196 drawTextureRect(left, top, right, bottom, texture, paint);
2211 float left = FLT_MAX;
2261 left = fminf(left, fminf(vertices[ax], fminf(vertices[bx], vertices[cx])));
2268 if (quickReject(left, top, right, bottom)) {
2292 dirtyLayer(left, top, right, bottom, currentTransform());
2413 float left, float top, float right, float bottom, SkPaint* paint) {
2414 if (quickReject(left, top, right, bottom)) {
2420 right - left, bottom - top, patch);
2422 return drawPatch(bitmap, mesh, entry, left, top, right, bottom, paint);
2426 float left, float top, float right, float bottom, SkPaint* paint) {
2427 if (quickReject(left, top, right, bottom)) {
2447 const float offsetX = left + currentTransform().getTranslateX();
2453 const float x = (int) floorf(bounds.left + offsetX + 0.5f);
2457 dirtyLayer(left + bounds.left, top + bounds.top,
2458 left + bounds.right, top + bounds.bottom, currentTransform());
2464 const float x = (int) floorf(left + currentTransform().getTranslateX() + 0.5f);
2467 right = x + right - left;
2474 drawIndexedTextureMesh(left, top, right, bottom, texture->id, alpha / 255.0f,
2638 drawColorRect(clip.left, clip.top, clip.right, clip.bottom, color, mode, true);
2643 status_t OpenGLRenderer::drawShape(float left, float top, const PathTexture* texture,
2648 const float x = left + texture->left - texture->offset;
2656 status_t OpenGLRenderer::drawRoundRect(float left, float top, float right, float bottom,
2658 if (mSnapshot->isIgnored() || quickRejectPreStroke(left, top, right, bottom, p) ||
2666 right - left, bottom - top, rx, ry, p);
2667 return drawShape(left, top, texture, p);
2671 SkRect rect = SkRect::MakeLTRB(left, top, right, bottom);
2703 status_t OpenGLRenderer::drawOval(float left, float top, float right, float bottom,
2705 if (mSnapshot->isIgnored() || quickRejectPreStroke(left, top, right, bottom, p) ||
2712 const PathTexture* texture = mCaches.pathCache.getOval(right - left, bottom - top, p);
2713 return drawShape(left, top, texture, p);
2717 SkRect rect = SkRect::MakeLTRB(left, top, right, bottom);
2725 status_t OpenGLRenderer::drawArc(float left, float top, float right, float bottom,
2727 if (mSnapshot->isIgnored() || quickRejectPreStroke(left, top, right, bottom, p) ||
2733 return drawOval(left, top, right, bottom, p);
2739 const PathTexture* texture = mCaches.pathCache.getArc(right - left, bottom - top,
2741 return drawShape(left, top, texture, p);
2744 SkRect rect = SkRect::MakeLTRB(left, top, right, bottom);
2763 status_t OpenGLRenderer::drawRect(float left, float top, float right, float bottom, SkPaint* p) {
2764 if (mSnapshot->isIgnored() || quickRejectPreStroke(left, top, right, bottom, p) ||
2775 mCaches.pathCache.getRect(right - left, bottom - top, p);
2776 return drawShape(left, top, texture, p);
2780 SkRect rect = SkRect::MakeLTRB(left, top, right, bottom);
2790 path.addRect(left, top, right, bottom);
2793 drawColorRect(left, top, right, bottom, p->getColor(), getXfermode(p->getXfermode()));
2813 const float sx = x - shadow->left + mDrawModifiers.mShadowDx;
3049 const float x = texture->left - texture->offset;
3286 const float left = x;
3299 points[currentPoint++] = left;
3301 points[currentPoint++] = left + underlineWidth;
3307 points[currentPoint++] = left;
3309 points[currentPoint++] = left + underlineWidth;
3341 float left = FLT_MAX;
3360 left = fminf(left, l);
3366 if (clip && quickReject(left, top, right, bottom)) {
3384 dirtyLayer(left, top, right, bottom, currentTransform());
3392 void OpenGLRenderer::drawColorRect(float left, float top, float right, float bottom,
3406 setupDrawModelView(left, top, right, bottom, ignoreTransform);
3415 void OpenGLRenderer::drawTextureRect(float left, float top, float right, float bottom,
3433 resetDrawTextureTexCoords(uvs.left, uvs.top, uvs.right, uvs.bottom);
3437 const float x = (int) floorf(left + currentTransform().getTranslateX() + 0.5f);
3446 drawTextureMesh(left, top, right, bottom, texture->id, alpha / 255.0f, mode,
3455 void OpenGLRenderer::drawTextureRect(float left, float top, float right, float bottom,
3457 drawTextureMesh(left, top, right, bottom, texture, alpha, mode, blend,
3461 void OpenGLRenderer::drawTextureMesh(float left, float top, float right, float bottom,
3474 setupDrawModelView(left, top, right, bottom, ignoreTransform);
3476 setupDrawModelViewTranslate(left, top, right, bottom, ignoreTransform);
3486 void OpenGLRenderer::drawIndexedTextureMesh(float left, float top, float right, float bottom,
3499 setupDrawModelView(left, top, right, bottom, ignoreTransform);
3501 setupDrawModelViewTranslate(left, top, right, bottom, ignoreTransform);
3511 void OpenGLRenderer::drawAlpha8TextureMesh(float left, float top, float right, float bottom,
3527 setupDrawModelView(left, top, right, bottom, ignoreTransform);
3529 setupDrawModelViewTranslate(left, top, right, bottom, ignoreTransform);