Lines Matching refs:left

172 status_t OpenGLRenderer::prepareDirty(float left, float top, float right, float bottom,
181 mSnapshot->setClip(left, top, right, bottom);
190 left <= 0.0f && top <= 0.0f && right >= mWidth && bottom >= mHeight) {
207 return clear(left, top, right, bottom, opaque);
210 status_t OpenGLRenderer::clear(float left, float top, float right, float bottom, bool opaque) {
213 mCaches.setScissor(left, mSnapshot->height - bottom, right - left, bottom - top);
239 mCaches.startTiling(clip->left, s->height - clip->bottom,
240 clip->right - clip->left, clip->bottom - clip->top, opaque);
396 info.clipLeft = clip.left;
451 mCaches.setScissor(clip->left, mTilingSnapshot->height - clip->bottom,
452 clip->right - clip->left, clip->bottom - clip->top);
481 renderer->prepareDirty(dirty.left, dirty.top, dirty.right, dirty.bottom, !layer->isBlend());
579 glViewport(r.left, r.top, r.right, r.bottom);
601 int OpenGLRenderer::saveLayer(float left, float top, float right, float bottom,
617 createLayer(left, top, right, bottom, alpha, mode, flags, previousFbo);
623 int OpenGLRenderer::saveLayerAlpha(float left, float top, float right, float bottom,
626 return saveLayer(left, top, right, bottom, NULL, flags);
630 return saveLayer(left, top, right, bottom, &paint, flags);
682 * buffer is left untouched until the first drawing operation. Only when
685 bool OpenGLRenderer::createLayer(float left, float top, float right, float bottom,
687 LAYER_LOGD("Requesting layer %.2fx%.2f", right - left, bottom - top);
694 Rect bounds(left, top, right, bottom);
715 clip.translate(-left, -top);
764 bounds.left, mSnapshot->height - bounds.bottom,
768 glCopyTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, bounds.left,
788 mSnapshot->resetTransform(-bounds.left, -bounds.top, 0.0f);
789 mSnapshot->resetClip(clip.left, clip.top, clip.right, clip.bottom);
814 mCaches.setScissor(clip.left - 1.0f, bounds.getHeight() - clip.bottom - 1.0f,
854 drawColorRect(rect.left, rect.top, rect.right, rect.bottom,
867 dirtyLayer(rect.left, rect.top, rect.right, rect.bottom, *previous->transform);
876 dirtyLayer(rect.left, rect.top, rect.right, rect.bottom);
924 const float x = (int) floorf(rect.left + mSnapshot->transform->getTranslateX() + 0.5f);
931 setupDrawModelView(rect.left, rect.top, rect.right, rect.bottom);
944 resetDrawTextureTexCoords(texCoords.left, texCoords.top,
947 float x = rect.left;
956 x = (int) floorf(rect.left + mSnapshot->transform->getTranslateX() + 0.5f);
1014 const float x = (int) floorf(rect.left + mSnapshot->transform->getTranslateX() + 0.5f);
1021 setupDrawModelViewTranslate(rect.left, rect.top, rect.right, rect.bottom);
1028 const float u1 = r->left * texX;
1034 TextureVertex::set(mesh++, r->left, r->top, u1, v1);
1036 TextureVertex::set(mesh++, r->left, r->bottom, u1, v2);
1081 Rect r(rects[i].left, rects[i].top, rects[i].right, rects[i].bottom);
1082 drawColorRect(r.left, r.top, r.right, r.bottom, colors[offset + (i & 0x1)],
1088 void OpenGLRenderer::dirtyLayer(const float left, const float top,
1091 Rect bounds(left, top, right, bottom);
1097 void OpenGLRenderer::dirtyLayer(const float left, const float top,
1100 Rect bounds(left, top, right, bottom);
1108 android::Rect dirty(bounds.left, bounds.top, bounds.right, bounds.bottom);
1135 Vertex::set(vertex++, bounds->left, bounds->bottom);
1136 Vertex::set(vertex++, bounds->left, bounds->top);
1138 Vertex::set(vertex++, bounds->left, bounds->bottom);
1212 if (mCaches.setScissor(clip.left, mSnapshot->height - clip.bottom,
1222 bool OpenGLRenderer::quickRejectNoScissor(float left, float top, float right, float bottom) {
1227 Rect r(left, top, right, bottom);
1237 bool OpenGLRenderer::quickRejectNoScissor(float left, float top, float right, float bottom,
1243 transformed.set(left, top, right, bottom);
1253 bool OpenGLRenderer::quickRejectPreStroke(float left, float top, float right, float bottom, SkPaint* paint) {
1256 return quickReject(left - outset, top - outset, right + outset, bottom + outset);
1258 return quickReject(left, top, right, bottom);
1262 bool OpenGLRenderer::quickReject(float left, float top, float right, float bottom) {
1263 if (mSnapshot->isIgnored() || bottom <= top || right <= left) {
1267 Rect r(left, top, right, bottom);
1282 bool OpenGLRenderer::clipRect(float left, float top, float right, float bottom, SkRegion::Op op) {
1283 bool clipped = mSnapshot->clip(left, top, right, bottom, op);
1424 void OpenGLRenderer::setupDrawModelViewTranslate(float left, float top, float right, float bottom,
1426 mModelView.loadTranslate(left, top, 0.0f);
1429 if (mTrackDirtyRegions) dirtyLayer(left, top, right, bottom, *mSnapshot->transform);
1432 if (mTrackDirtyRegions) dirtyLayer(left, top, right, bottom);
1440 void OpenGLRenderer::setupDrawModelView(float left, float top, float right, float bottom,
1443 mModelView.loadTranslate(left, top, 0.0f);
1444 mModelView.scale(right - left, bottom - top, 1.0f);
1448 bool dirty = right - left > 0.0f && bottom - top > 0.0f;
1452 dirtyLayer(left, top, right, bottom, *mSnapshot->transform);
1456 if (mTrackDirtyRegions && dirty) dirtyLayer(left, top, right, bottom);
1619 void OpenGLRenderer::drawAlphaBitmap(Texture* texture, float left, float top, SkPaint* paint) {
1624 float x = left;
1630 x = (int) floorf(left + mSnapshot->transform->getTranslateX() + 0.5f);
1663 status_t OpenGLRenderer::drawBitmap(SkBitmap* bitmap, float left, float top, SkPaint* paint) {
1664 const float right = left + bitmap->width();
1667 if (quickReject(left, top, right, bottom)) {
1677 drawAlphaBitmap(texture, left, top, paint);
1679 drawTextureRect(left, top, right, bottom, texture, paint);
1690 if (quickReject(r.left, r.top, r.right, r.bottom)) {
1709 status_t OpenGLRenderer::drawBitmapData(SkBitmap* bitmap, float left, float top, SkPaint* paint) {
1710 const float right = left + bitmap->width();
1713 if (quickReject(left, top, right, bottom)) {
1721 drawTextureRect(left, top, right, bottom, texture, paint);
1733 float left = FLT_MAX;
1771 left = fminf(left, fminf(vertices[ax], fminf(vertices[bx], vertices[cx])));
1778 if (quickReject(left, top, right, bottom)) {
1795 dirtyLayer(left, top, right, bottom, *mSnapshot->transform);
1864 float left, float top, float right, float bottom, SkPaint* paint) {
1870 left, top, right, bottom, alpha, mode);
1875 float left, float top, float right, float bottom, int alpha, SkXfermode::Mode mode) {
1876 if (quickReject(left, top, right, bottom)) {
1890 right - left, bottom - top, xDivs, yDivs, colors, width, height, numColors);
1896 const float offsetX = left + mSnapshot->transform->getTranslateX();
1902 const float x = (int) floorf(bounds.left + offsetX + 0.5f);
1906 dirtyLayer(left + bounds.left, top + bounds.top,
1907 left + bounds.right, top + bounds.bottom, *mSnapshot->transform);
1913 const float x = (int) floorf(left + mSnapshot->transform->getTranslateX() + 0.5f);
1916 drawTextureMesh(x, y, x + right - left, y + bottom - top, texture->id, alpha / 255.0f,
1921 drawTextureMesh(left, top, right, bottom, texture->id, alpha / 255.0f,
2188 const float left = fmin(p1.x, fmin(p2.x, fmin(p3.x, p4.x)));
2193 if (!quickRejectNoScissor(left, top, right, bottom)) {
2250 dirtyLayer(a.x == b.x ? left - 1 : left, a.y == b.y ? top - 1 : top,
2315 float left = points[i] - halfWidth;
2320 dirtyLayer(left, top, right, bottom, *mSnapshot->transform);
2335 drawColorRect(clip.left, clip.top, clip.right, clip.bottom, color, mode, true);
2340 status_t OpenGLRenderer::drawShape(float left, float top, const PathTexture* texture,
2345 const float x = left + texture->left - texture->offset;
2353 status_t OpenGLRenderer::drawRoundRect(float left, float top, float right, float bottom,
2355 if (mSnapshot->isIgnored() || quickRejectPreStroke(left, top, right, bottom, p)) {
2362 right - left, bottom - top, rx, ry, p);
2363 return drawShape(left, top, texture, p);
2367 SkRect rect = SkRect::MakeLTRB(left, top, right, bottom);
2402 status_t OpenGLRenderer::drawOval(float left, float top, float right, float bottom,
2404 if (mSnapshot->isIgnored() || quickRejectPreStroke(left, top, right, bottom, p)) {
2410 const PathTexture* texture = mCaches.ovalShapeCache.getOval(right - left, bottom - top, p);
2411 return drawShape(left, top, texture, p);
2415 SkRect rect = SkRect::MakeLTRB(left, top, right, bottom);
2425 status_t OpenGLRenderer::drawArc(float left, float top, float right, float bottom,
2427 if (mSnapshot->isIgnored() || quickRejectPreStroke(left, top, right, bottom, p)) {
2432 return drawOval(left, top, right, bottom, p);
2438 const PathTexture* texture = mCaches.arcShapeCache.getArc(right - left, bottom - top,
2440 return drawShape(left, top, texture, p);
2443 SkRect rect = SkRect::MakeLTRB(left, top, right, bottom);
2464 status_t OpenGLRenderer::drawRect(float left, float top, float right, float bottom, SkPaint* p) {
2465 if (mSnapshot->isIgnored() || quickRejectPreStroke(left, top, right, bottom, p)) {
2475 mCaches.rectShapeCache.getRect(right - left, bottom - top, p);
2476 return drawShape(left, top, texture, p);
2480 SkRect rect = SkRect::MakeLTRB(left, top, right, bottom);
2492 path.addRect(left, top, right, bottom);
2495 drawColorRect(left, top, right, bottom, p->getColor(), getXfermode(p->getXfermode()));
2513 const float sx = x - shadow->left + mShadowDx;
2777 const float x = texture->left - texture->offset;
2997 const float left = x;
3010 points[currentPoint++] = left;
3012 points[currentPoint++] = left + underlineWidth;
3018 points[currentPoint++] = left;
3020 points[currentPoint++] = left + underlineWidth;
3031 void OpenGLRenderer::drawColorRect(float left, float top, float right, float bottom,
3045 setupDrawModelView(left, top, right, bottom, ignoreTransform);
3054 void OpenGLRenderer::drawTextureRect(float left, float top, float right, float bottom,
3063 const float x = (int) floorf(left + mSnapshot->transform->getTranslateX() + 0.5f);
3072 drawTextureMesh(left, top, right, bottom, texture->id, alpha / 255.0f, mode,
3078 void OpenGLRenderer::drawTextureRect(float left, float top, float right, float bottom,
3080 drawTextureMesh(left, top, right, bottom, texture, alpha, mode, blend,
3084 void OpenGLRenderer::drawTextureMesh(float left, float top, float right, float bottom,
3099 setupDrawModelView(left, top, right, bottom, ignoreTransform);
3101 setupDrawModelViewTranslate(left, top, right, bottom, ignoreTransform);