Lines Matching defs:left

151 void OpenGLRenderer::prepareDirty(float left, float top, float right, float bottom, bool opaque) {
163 glScissor(left, mSnapshot->height - bottom, right - left, bottom - top);
164 mSnapshot->setClip(left, top, right, bottom);
240 info.clipLeft = clip.left;
299 glViewport(r.left, r.top, r.right, r.bottom);
321 int OpenGLRenderer::saveLayer(float left, float top, float right, float bottom,
345 createLayer(mSnapshot, left, top, right, bottom, alpha, mode, flags, previousFbo);
351 int OpenGLRenderer::saveLayerAlpha(float left, float top, float right, float bottom,
354 return saveLayer(left, top, right, bottom, NULL, flags);
358 return saveLayer(left, top, right, bottom, &paint, flags);
410 * buffer is left untouched until the first drawing operation. Only when
413 bool OpenGLRenderer::createLayer(sp<Snapshot> snapshot, float left, float top,
416 LAYER_LOGD("Requesting layer %.2fx%.2f", right - left, bottom - top);
422 Rect bounds(left, top, right, bottom);
478 bounds.left, snapshot->height - bounds.bottom,
482 glCopyTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, bounds.left,
515 clip.translate(-bounds.left, -bounds.top);
519 snapshot->resetTransform(-bounds.left, -bounds.top, 0.0f);
520 snapshot->resetClip(clip.left, clip.top, clip.right, clip.bottom);
555 glScissor(clip.left - 1.0f, bounds.getHeight() - clip.bottom - 1.0f,
589 drawColorRect(rect.left, rect.top, rect.right, rect.bottom,
602 dirtyLayer(rect.left, rect.top, rect.right, rect.bottom, *previous->transform);
611 dirtyLayer(rect.left, rect.top, rect.right, rect.bottom);
665 const float x = (int) floorf(rect.left + mSnapshot->transform->getTranslateX() + 0.5f);
672 setupDrawModelView(rect.left, rect.top, rect.right, rect.bottom);
689 resetDrawTextureTexCoords(texCoords.left, texCoords.top,
692 float x = rect.left;
701 x = (int) floorf(rect.left + mSnapshot->transform->getTranslateX() + 0.5f);
760 const float x = (int) floorf(rect.left + mSnapshot->transform->getTranslateX() + 0.5f);
767 setupDrawModelViewTranslate(rect.left, rect.top, rect.right, rect.bottom);
774 const float u1 = r->left * texX;
780 TextureVertex::set(mesh++, r->left, r->top, u1, v1);
782 TextureVertex::set(mesh++, r->left, r->bottom, u1, v2);
831 Rect r(rects[i].left, rects[i].top, rects[i].right, rects[i].bottom);
832 drawColorRect(r.left, r.top, r.right, r.bottom, colors[offset + (i & 0x1)],
838 void OpenGLRenderer::dirtyLayer(const float left, const float top,
842 Rect bounds(left, top, right, bottom);
849 void OpenGLRenderer::dirtyLayer(const float left, const float top,
853 Rect bounds(left, top, right, bottom);
863 android::Rect dirty(bounds.left, bounds.top, bounds.right, bounds.bottom);
891 Vertex::set(vertex++, bounds->left, bounds->bottom);
892 Vertex::set(vertex++, bounds->left, bounds->top);
894 Vertex::set(vertex++, bounds->left, bounds->bottom);
965 glScissor(clip.left, mSnapshot->height - clip.bottom, clip.getWidth(), clip.getHeight());
973 bool OpenGLRenderer::quickReject(float left, float top, float right, float bottom) {
978 Rect r(left, top, right, bottom);
988 bool OpenGLRenderer::clipRect(float left, float top, float right, float bottom, SkRegion::Op op) {
989 bool clipped = mSnapshot->clip(left, top, right, bottom, op);
1122 void OpenGLRenderer::setupDrawModelViewTranslate(float left, float top, float right, float bottom,
1124 mModelView.loadTranslate(left, top, 0.0f);
1127 if (mTrackDirtyRegions) dirtyLayer(left, top, right, bottom, *mSnapshot->transform);
1130 if (mTrackDirtyRegions) dirtyLayer(left, top, right, bottom);
1138 void OpenGLRenderer::setupDrawModelView(float left, float top, float right, float bottom,
1141 mModelView.loadTranslate(left, top, 0.0f);
1142 mModelView.scale(right - left, bottom - top, 1.0f);
1146 bool dirty = right - left > 0.0f && bottom - top > 0.0f;
1150 dirtyLayer(left, top, right, bottom, *mSnapshot->transform);
1154 if (mTrackDirtyRegions && dirty) dirtyLayer(left, top, right, bottom);
1304 void OpenGLRenderer::drawAlphaBitmap(Texture* texture, float left, float top, SkPaint* paint) {
1309 float x = left;
1315 x = (int) floorf(left + mSnapshot->transform->getTranslateX() + 0.5f);
1346 void OpenGLRenderer::drawBitmap(SkBitmap* bitmap, float left, float top, SkPaint* paint) {
1347 const float right = left + bitmap->width();
1350 if (quickReject(left, top, right, bottom)) {
1360 drawAlphaBitmap(texture, left, top, paint);
1362 drawTextureRect(left, top, right, bottom, texture, paint);
1371 if (quickReject(r.left, r.top, r.right, r.bottom)) {
1409 float left = FLT_MAX;
1452 left = fminf(left, fminf(vertices[ax], fminf(vertices[bx], vertices[cx])));
1463 dirtyLayer(left, top, right, bottom, *mSnapshot->transform);
1529 float left, float top, float right, float bottom, SkPaint* paint) {
1530 if (quickReject(left, top, right, bottom)) {
1546 right - left, bottom - top, xDivs, yDivs, colors, width, height, numColors);
1553 const float offsetX = left + mSnapshot->transform->getTranslateX();
1559 const float x = (int) floorf(bounds.left + offsetX + 0.5f);
1563 dirtyLayer(left + bounds.left, top + bounds.top,
1564 left + bounds.right, top + bounds.bottom, *mSnapshot->transform);
1571 const float x = (int) floorf(left + mSnapshot->transform->getTranslateX() + 0.5f);
1574 drawTextureMesh(x, y, x + right - left, y + bottom - top, texture->id, alpha / 255.0f,
1579 drawTextureMesh(left, top, right, bottom, texture->id, alpha / 255.0f,
1593 void OpenGLRenderer::drawAARect(float left, float top, float right, float bottom,
1633 left -= boundarySizeX;
1638 float width = right - left;
1649 if (!quickReject(left, top, right, bottom)) {
1650 AAVertex::set(aaVertices++, left, bottom, 1, 1);
1651 AAVertex::set(aaVertices++, left, top, 1, 0);
1654 dirtyLayer(left, top, right, bottom, *mSnapshot->transform);
1836 const float left = fmin(p1.x, fmin(p2.x, fmin(p3.x, p4.x)));
1841 if (!quickReject(left, top, right, bottom)) {
1896 dirtyLayer(a.x == b.x ? left - 1 : left, a.y == b.y ? top - 1 : top,
1948 float left = points[i] - halfWidth;
1952 dirtyLayer(left, top, right, bottom, *mSnapshot->transform);
1965 drawColorRect(clip.left, clip.top, clip.right, clip.bottom, color, mode, true);
1968 void OpenGLRenderer::drawShape(float left, float top, const PathTexture* texture, SkPaint* paint) {
1972 const float x = left + texture->left - texture->offset;
1978 void OpenGLRenderer::drawRoundRect(float left, float top, float right, float bottom,
1984 right - left, bottom - top, rx, ry, paint);
1985 drawShape(left, top, texture, paint);
1996 void OpenGLRenderer::drawOval(float left, float top, float right, float bottom, SkPaint* paint) {
2000 const PathTexture* texture = mCaches.ovalShapeCache.getOval(right - left, bottom - top, paint);
2001 drawShape(left, top, texture, paint);
2004 void OpenGLRenderer::drawArc(float left, float top, float right, float bottom,
2009 drawOval(left, top, right, bottom, paint);
2014 const PathTexture* texture = mCaches.arcShapeCache.getArc(right - left, bottom - top,
2016 drawShape(left, top, texture, paint);
2019 void OpenGLRenderer::drawRectAsShape(float left, float top, float right, float bottom,
2024 const PathTexture* texture = mCaches.rectShapeCache.getRect(right - left, bottom - top, paint);
2025 drawShape(left, top, texture, paint);
2028 void OpenGLRenderer::drawRect(float left, float top, float right, float bottom, SkPaint* p) {
2030 drawRectAsShape(left, top, right, bottom, p);
2034 if (quickReject(left, top, right, bottom)) {
2051 drawAARect(left, top, right, bottom, color, mode);
2053 drawColorRect(left, top, right, bottom, color, mode);
2111 const float sx = oldX - shadow->left + mShadowDx;
2206 const float x = texture->left - texture->offset;
2381 const float left = x - offsetX;
2394 points[currentPoint++] = left;
2396 points[currentPoint++] = left + underlineWidth;
2402 points[currentPoint++] = left;
2404 points[currentPoint++] = left + underlineWidth;
2415 void OpenGLRenderer::drawColorRect(float left, float top, float right, float bottom,
2428 setupDrawModelView(left, top, right, bottom, ignoreTransform);
2437 void OpenGLRenderer::drawTextureRect(float left, float top, float right, float bottom,
2446 const float x = (int) floorf(left + mSnapshot->transform->getTranslateX() + 0.5f);
2455 drawTextureMesh(left, top, right, bottom, texture->id, alpha / 255.0f, mode,
2461 void OpenGLRenderer::drawTextureRect(float left, float top, float right, float bottom,
2463 drawTextureMesh(left, top, right, bottom, texture, alpha, mode, blend,
2467 void OpenGLRenderer::drawTextureMesh(float left, float top, float right, float bottom,
2482 setupDrawModelView(left, top, right, bottom, ignoreTransform);
2484 setupDrawModelViewTranslate(left, top, right, bottom, ignoreTransform);