Romain Guy | fb5e23c | 2010-07-09 13:52:56 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2010 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
Chris Craik | 9db58c0 | 2015-08-19 15:19:18 -0700 | [diff] [blame] | 17 | #include "Patch.h" |
Romain Guy | 4bb9420 | 2010-10-12 15:59:26 -0700 | [diff] [blame] | 18 | |
Romain Guy | 03750a0 | 2010-10-18 14:06:08 -0700 | [diff] [blame] | 19 | #include "Caches.h" |
Romain Guy | a5ef39a | 2010-12-03 16:48:20 -0800 | [diff] [blame] | 20 | #include "Properties.h" |
Romain Guy | 3b748a4 | 2013-04-17 18:54:38 -0700 | [diff] [blame] | 21 | #include "UvMapper.h" |
Chris Craik | 8820fd1 | 2015-03-03 14:20:47 -0800 | [diff] [blame] | 22 | #include "utils/MathUtils.h" |
Romain Guy | fb5e23c | 2010-07-09 13:52:56 -0700 | [diff] [blame] | 23 | |
Chris Craik | 9db58c0 | 2015-08-19 15:19:18 -0700 | [diff] [blame] | 24 | #include <algorithm> |
| 25 | #include <utils/Log.h> |
| 26 | |
Romain Guy | fb5e23c | 2010-07-09 13:52:56 -0700 | [diff] [blame] | 27 | namespace android { |
| 28 | namespace uirenderer { |
| 29 | |
| 30 | /////////////////////////////////////////////////////////////////////////////// |
Romain Guy | fb5e23c | 2010-07-09 13:52:56 -0700 | [diff] [blame] | 31 | // Vertices management |
| 32 | /////////////////////////////////////////////////////////////////////////////// |
| 33 | |
Romain Guy | 3b748a4 | 2013-04-17 18:54:38 -0700 | [diff] [blame] | 34 | uint32_t Patch::getSize() const { |
| 35 | return verticesCount * sizeof(TextureVertex); |
| 36 | } |
Romain Guy | a5ef39a | 2010-12-03 16:48:20 -0800 | [diff] [blame] | 37 | |
Chris Craik | 8820fd1 | 2015-03-03 14:20:47 -0800 | [diff] [blame] | 38 | Patch::Patch(const float bitmapWidth, const float bitmapHeight, |
| 39 | float width, float height, const UvMapper& mapper, const Res_png_9patch* patch) |
| 40 | : mColors(patch->getColors()) { |
Romain Guy | 3b748a4 | 2013-04-17 18:54:38 -0700 | [diff] [blame] | 41 | |
Romain Guy | 3b748a4 | 2013-04-17 18:54:38 -0700 | [diff] [blame] | 42 | int8_t emptyQuads = 0; |
Romain Guy | 6cad757 | 2013-07-24 11:49:33 -0700 | [diff] [blame] | 43 | const int8_t numColors = patch->numColors; |
Romain Guy | 3b748a4 | 2013-04-17 18:54:38 -0700 | [diff] [blame] | 44 | if (uint8_t(numColors) < sizeof(uint32_t) * 4) { |
| 45 | for (int8_t i = 0; i < numColors; i++) { |
Romain Guy | 6cad757 | 2013-07-24 11:49:33 -0700 | [diff] [blame] | 46 | if (mColors[i] == 0x0) { |
Romain Guy | 3b748a4 | 2013-04-17 18:54:38 -0700 | [diff] [blame] | 47 | emptyQuads++; |
Romain Guy | 3b748a4 | 2013-04-17 18:54:38 -0700 | [diff] [blame] | 48 | } |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | hasEmptyQuads = emptyQuads > 0; |
| 53 | |
| 54 | uint32_t xCount = patch->numXDivs; |
| 55 | uint32_t yCount = patch->numYDivs; |
| 56 | |
| 57 | uint32_t maxVertices = ((xCount + 1) * (yCount + 1) - emptyQuads) * 4; |
Chris Craik | 8820fd1 | 2015-03-03 14:20:47 -0800 | [diff] [blame] | 58 | if (maxVertices == 0) return; |
Romain Guy | 3b748a4 | 2013-04-17 18:54:38 -0700 | [diff] [blame] | 59 | |
Chris Craik | 51d6a3d | 2014-12-22 17:16:56 -0800 | [diff] [blame] | 60 | vertices.reset(new TextureVertex[maxVertices]); |
| 61 | TextureVertex* vertex = vertices.get(); |
Romain Guy | 3b748a4 | 2013-04-17 18:54:38 -0700 | [diff] [blame] | 62 | |
Narayan Kamath | 6381dd4 | 2014-03-03 17:12:03 +0000 | [diff] [blame] | 63 | const int32_t* xDivs = patch->getXDivs(); |
| 64 | const int32_t* yDivs = patch->getYDivs(); |
Romain Guy | 3b748a4 | 2013-04-17 18:54:38 -0700 | [diff] [blame] | 65 | |
| 66 | const uint32_t xStretchCount = (xCount + 1) >> 1; |
| 67 | const uint32_t yStretchCount = (yCount + 1) >> 1; |
Romain Guy | fb5e23c | 2010-07-09 13:52:56 -0700 | [diff] [blame] | 68 | |
Romain Guy | 6820ac8 | 2010-09-15 18:11:50 -0700 | [diff] [blame] | 69 | float stretchX = 0.0f; |
Romain Guy | 41d35ae | 2012-10-10 16:06:04 -0700 | [diff] [blame] | 70 | float stretchY = 0.0f; |
| 71 | |
| 72 | float rescaleX = 1.0f; |
| 73 | float rescaleY = 1.0f; |
Romain Guy | fb5e23c | 2010-07-09 13:52:56 -0700 | [diff] [blame] | 74 | |
Romain Guy | fb5e23c | 2010-07-09 13:52:56 -0700 | [diff] [blame] | 75 | if (xStretchCount > 0) { |
| 76 | uint32_t stretchSize = 0; |
Romain Guy | 3b748a4 | 2013-04-17 18:54:38 -0700 | [diff] [blame] | 77 | for (uint32_t i = 1; i < xCount; i += 2) { |
| 78 | stretchSize += xDivs[i] - xDivs[i - 1]; |
Romain Guy | fb5e23c | 2010-07-09 13:52:56 -0700 | [diff] [blame] | 79 | } |
Romain Guy | 6820ac8 | 2010-09-15 18:11:50 -0700 | [diff] [blame] | 80 | const float xStretchTex = stretchSize; |
Romain Guy | fb5e23c | 2010-07-09 13:52:56 -0700 | [diff] [blame] | 81 | const float fixed = bitmapWidth - stretchSize; |
Chris Craik | df72b63 | 2015-06-30 17:56:13 -0700 | [diff] [blame] | 82 | const float xStretch = std::max(width - fixed, 0.0f); |
Romain Guy | 6820ac8 | 2010-09-15 18:11:50 -0700 | [diff] [blame] | 83 | stretchX = xStretch / xStretchTex; |
Chris Craik | df72b63 | 2015-06-30 17:56:13 -0700 | [diff] [blame] | 84 | rescaleX = fixed == 0.0f ? 0.0f : std::min(std::max(width, 0.0f) / fixed, 1.0f); |
Romain Guy | fb5e23c | 2010-07-09 13:52:56 -0700 | [diff] [blame] | 85 | } |
| 86 | |
| 87 | if (yStretchCount > 0) { |
| 88 | uint32_t stretchSize = 0; |
Romain Guy | 3b748a4 | 2013-04-17 18:54:38 -0700 | [diff] [blame] | 89 | for (uint32_t i = 1; i < yCount; i += 2) { |
| 90 | stretchSize += yDivs[i] - yDivs[i - 1]; |
Romain Guy | fb5e23c | 2010-07-09 13:52:56 -0700 | [diff] [blame] | 91 | } |
Romain Guy | 6820ac8 | 2010-09-15 18:11:50 -0700 | [diff] [blame] | 92 | const float yStretchTex = stretchSize; |
Romain Guy | fb5e23c | 2010-07-09 13:52:56 -0700 | [diff] [blame] | 93 | const float fixed = bitmapHeight - stretchSize; |
Chris Craik | df72b63 | 2015-06-30 17:56:13 -0700 | [diff] [blame] | 94 | const float yStretch = std::max(height - fixed, 0.0f); |
Romain Guy | 6820ac8 | 2010-09-15 18:11:50 -0700 | [diff] [blame] | 95 | stretchY = yStretch / yStretchTex; |
Chris Craik | df72b63 | 2015-06-30 17:56:13 -0700 | [diff] [blame] | 96 | rescaleY = fixed == 0.0f ? 0.0f : std::min(std::max(height, 0.0f) / fixed, 1.0f); |
Romain Guy | fb5e23c | 2010-07-09 13:52:56 -0700 | [diff] [blame] | 97 | } |
| 98 | |
Romain Guy | 4bb9420 | 2010-10-12 15:59:26 -0700 | [diff] [blame] | 99 | uint32_t quadCount = 0; |
Romain Guy | fb5e23c | 2010-07-09 13:52:56 -0700 | [diff] [blame] | 100 | |
Romain Guy | 6820ac8 | 2010-09-15 18:11:50 -0700 | [diff] [blame] | 101 | float previousStepY = 0.0f; |
Romain Guy | fb5e23c | 2010-07-09 13:52:56 -0700 | [diff] [blame] | 102 | |
Romain Guy | 6820ac8 | 2010-09-15 18:11:50 -0700 | [diff] [blame] | 103 | float y1 = 0.0f; |
Romain Guy | f504a2f | 2011-05-26 16:40:55 -0700 | [diff] [blame] | 104 | float y2 = 0.0f; |
Romain Guy | 6820ac8 | 2010-09-15 18:11:50 -0700 | [diff] [blame] | 105 | float v1 = 0.0f; |
| 106 | |
Romain Guy | 3b748a4 | 2013-04-17 18:54:38 -0700 | [diff] [blame] | 107 | mUvMapper = mapper; |
| 108 | |
| 109 | for (uint32_t i = 0; i < yCount; i++) { |
| 110 | float stepY = yDivs[i]; |
Romain Guy | 5e7c469 | 2011-10-20 20:31:50 -0700 | [diff] [blame] | 111 | const float segment = stepY - previousStepY; |
Romain Guy | 6820ac8 | 2010-09-15 18:11:50 -0700 | [diff] [blame] | 112 | |
Romain Guy | 6820ac8 | 2010-09-15 18:11:50 -0700 | [diff] [blame] | 113 | if (i & 1) { |
Romain Guy | 8ab4079 | 2010-12-07 13:30:10 -0800 | [diff] [blame] | 114 | y2 = y1 + floorf(segment * stretchY + 0.5f); |
Romain Guy | fb5e23c | 2010-07-09 13:52:56 -0700 | [diff] [blame] | 115 | } else { |
Romain Guy | 41d35ae | 2012-10-10 16:06:04 -0700 | [diff] [blame] | 116 | y2 = y1 + segment * rescaleY; |
Romain Guy | fb5e23c | 2010-07-09 13:52:56 -0700 | [diff] [blame] | 117 | } |
Romain Guy | 5e7c469 | 2011-10-20 20:31:50 -0700 | [diff] [blame] | 118 | |
| 119 | float vOffset = y1 == y2 ? 0.0f : 0.5 - (0.5 * segment / (y2 - y1)); |
Chris Craik | e6a15ee | 2015-07-07 18:42:17 -0700 | [diff] [blame] | 120 | float v2 = std::max(0.0f, stepY - vOffset) / bitmapHeight; |
Romain Guy | 5e7c469 | 2011-10-20 20:31:50 -0700 | [diff] [blame] | 121 | v1 += vOffset / bitmapHeight; |
Romain Guy | 6820ac8 | 2010-09-15 18:11:50 -0700 | [diff] [blame] | 122 | |
Romain Guy | eb6a4a1 | 2011-01-18 14:02:16 -0800 | [diff] [blame] | 123 | if (stepY > 0.0f) { |
Romain Guy | 3b748a4 | 2013-04-17 18:54:38 -0700 | [diff] [blame] | 124 | generateRow(xDivs, xCount, vertex, y1, y2, v1, v2, stretchX, rescaleX, |
Romain Guy | 03c00b5 | 2013-06-20 18:30:28 -0700 | [diff] [blame] | 125 | width, bitmapWidth, quadCount); |
Romain Guy | eb6a4a1 | 2011-01-18 14:02:16 -0800 | [diff] [blame] | 126 | } |
Romain Guy | 6820ac8 | 2010-09-15 18:11:50 -0700 | [diff] [blame] | 127 | |
| 128 | y1 = y2; |
Romain Guy | 5e7c469 | 2011-10-20 20:31:50 -0700 | [diff] [blame] | 129 | v1 = stepY / bitmapHeight; |
Romain Guy | 6820ac8 | 2010-09-15 18:11:50 -0700 | [diff] [blame] | 130 | |
| 131 | previousStepY = stepY; |
Romain Guy | fb5e23c | 2010-07-09 13:52:56 -0700 | [diff] [blame] | 132 | } |
| 133 | |
Romain Guy | fdbec3e | 2011-01-19 10:37:35 -0800 | [diff] [blame] | 134 | if (previousStepY != bitmapHeight) { |
Romain Guy | 03c00b5 | 2013-06-20 18:30:28 -0700 | [diff] [blame] | 135 | y2 = height; |
Romain Guy | 3b748a4 | 2013-04-17 18:54:38 -0700 | [diff] [blame] | 136 | generateRow(xDivs, xCount, vertex, y1, y2, v1, 1.0f, stretchX, rescaleX, |
Romain Guy | 03c00b5 | 2013-06-20 18:30:28 -0700 | [diff] [blame] | 137 | width, bitmapWidth, quadCount); |
Romain Guy | fdbec3e | 2011-01-19 10:37:35 -0800 | [diff] [blame] | 138 | } |
Romain Guy | 03750a0 | 2010-10-18 14:06:08 -0700 | [diff] [blame] | 139 | |
Chris Craik | 51d6a3d | 2014-12-22 17:16:56 -0800 | [diff] [blame] | 140 | if (verticesCount != maxVertices) { |
| 141 | std::unique_ptr<TextureVertex[]> reducedVertices(new TextureVertex[verticesCount]); |
| 142 | memcpy(reducedVertices.get(), vertices.get(), verticesCount * sizeof(TextureVertex)); |
| 143 | vertices = std::move(reducedVertices); |
Romain Guy | f296dca | 2013-06-24 14:33:37 -0700 | [diff] [blame] | 144 | } |
Romain Guy | fb5e23c | 2010-07-09 13:52:56 -0700 | [diff] [blame] | 145 | } |
| 146 | |
Romain Guy | 3b748a4 | 2013-04-17 18:54:38 -0700 | [diff] [blame] | 147 | void Patch::generateRow(const int32_t* xDivs, uint32_t xCount, TextureVertex*& vertex, |
| 148 | float y1, float y2, float v1, float v2, float stretchX, float rescaleX, |
| 149 | float width, float bitmapWidth, uint32_t& quadCount) { |
Romain Guy | 6820ac8 | 2010-09-15 18:11:50 -0700 | [diff] [blame] | 150 | float previousStepX = 0.0f; |
Romain Guy | fb5e23c | 2010-07-09 13:52:56 -0700 | [diff] [blame] | 151 | |
Romain Guy | 6820ac8 | 2010-09-15 18:11:50 -0700 | [diff] [blame] | 152 | float x1 = 0.0f; |
Romain Guy | f504a2f | 2011-05-26 16:40:55 -0700 | [diff] [blame] | 153 | float x2 = 0.0f; |
Romain Guy | 6820ac8 | 2010-09-15 18:11:50 -0700 | [diff] [blame] | 154 | float u1 = 0.0f; |
Romain Guy | fb5e23c | 2010-07-09 13:52:56 -0700 | [diff] [blame] | 155 | |
Romain Guy | 6820ac8 | 2010-09-15 18:11:50 -0700 | [diff] [blame] | 156 | // Generate the row quad by quad |
Romain Guy | 3b748a4 | 2013-04-17 18:54:38 -0700 | [diff] [blame] | 157 | for (uint32_t i = 0; i < xCount; i++) { |
| 158 | float stepX = xDivs[i]; |
Romain Guy | 5e7c469 | 2011-10-20 20:31:50 -0700 | [diff] [blame] | 159 | const float segment = stepX - previousStepX; |
Romain Guy | 6820ac8 | 2010-09-15 18:11:50 -0700 | [diff] [blame] | 160 | |
Romain Guy | 6820ac8 | 2010-09-15 18:11:50 -0700 | [diff] [blame] | 161 | if (i & 1) { |
Romain Guy | 8ab4079 | 2010-12-07 13:30:10 -0800 | [diff] [blame] | 162 | x2 = x1 + floorf(segment * stretchX + 0.5f); |
Romain Guy | fb5e23c | 2010-07-09 13:52:56 -0700 | [diff] [blame] | 163 | } else { |
Romain Guy | 41d35ae | 2012-10-10 16:06:04 -0700 | [diff] [blame] | 164 | x2 = x1 + segment * rescaleX; |
Romain Guy | fb5e23c | 2010-07-09 13:52:56 -0700 | [diff] [blame] | 165 | } |
Romain Guy | 5e7c469 | 2011-10-20 20:31:50 -0700 | [diff] [blame] | 166 | |
| 167 | float uOffset = x1 == x2 ? 0.0f : 0.5 - (0.5 * segment / (x2 - x1)); |
Chris Craik | e6a15ee | 2015-07-07 18:42:17 -0700 | [diff] [blame] | 168 | float u2 = std::max(0.0f, stepX - uOffset) / bitmapWidth; |
Romain Guy | 5e7c469 | 2011-10-20 20:31:50 -0700 | [diff] [blame] | 169 | u1 += uOffset / bitmapWidth; |
Romain Guy | fb5e23c | 2010-07-09 13:52:56 -0700 | [diff] [blame] | 170 | |
Romain Guy | eb6a4a1 | 2011-01-18 14:02:16 -0800 | [diff] [blame] | 171 | if (stepX > 0.0f) { |
| 172 | generateQuad(vertex, x1, y1, x2, y2, u1, v1, u2, v2, quadCount); |
| 173 | } |
Romain Guy | 6820ac8 | 2010-09-15 18:11:50 -0700 | [diff] [blame] | 174 | |
| 175 | x1 = x2; |
Romain Guy | 5e7c469 | 2011-10-20 20:31:50 -0700 | [diff] [blame] | 176 | u1 = stepX / bitmapWidth; |
Romain Guy | 6820ac8 | 2010-09-15 18:11:50 -0700 | [diff] [blame] | 177 | |
| 178 | previousStepX = stepX; |
Romain Guy | fb5e23c | 2010-07-09 13:52:56 -0700 | [diff] [blame] | 179 | } |
| 180 | |
Romain Guy | fdbec3e | 2011-01-19 10:37:35 -0800 | [diff] [blame] | 181 | if (previousStepX != bitmapWidth) { |
Romain Guy | f504a2f | 2011-05-26 16:40:55 -0700 | [diff] [blame] | 182 | x2 = width; |
Romain Guy | f504a2f | 2011-05-26 16:40:55 -0700 | [diff] [blame] | 183 | generateQuad(vertex, x1, y1, x2, y2, u1, v1, 1.0f, v2, quadCount); |
Romain Guy | fdbec3e | 2011-01-19 10:37:35 -0800 | [diff] [blame] | 184 | } |
Romain Guy | fb5e23c | 2010-07-09 13:52:56 -0700 | [diff] [blame] | 185 | } |
| 186 | |
Romain Guy | 7444da5 | 2011-01-17 10:53:31 -0800 | [diff] [blame] | 187 | void Patch::generateQuad(TextureVertex*& vertex, float x1, float y1, float x2, float y2, |
Romain Guy | eb6a4a1 | 2011-01-18 14:02:16 -0800 | [diff] [blame] | 188 | float u1, float v1, float u2, float v2, uint32_t& quadCount) { |
Romain Guy | a5ef39a | 2010-12-03 16:48:20 -0800 | [diff] [blame] | 189 | const uint32_t oldQuadCount = quadCount; |
Romain Guy | eb6a4a1 | 2011-01-18 14:02:16 -0800 | [diff] [blame] | 190 | quadCount++; |
Romain Guy | bd41a11 | 2010-12-02 17:16:26 -0800 | [diff] [blame] | 191 | |
Chris Craik | 9db58c0 | 2015-08-19 15:19:18 -0700 | [diff] [blame] | 192 | x1 = std::max(x1, 0.0f); |
| 193 | x2 = std::max(x2, 0.0f); |
| 194 | y1 = std::max(y1, 0.0f); |
| 195 | y2 = std::max(y2, 0.0f); |
Romain Guy | 70561df | 2012-09-10 17:40:18 -0700 | [diff] [blame] | 196 | |
Romain Guy | a5ef39a | 2010-12-03 16:48:20 -0800 | [diff] [blame] | 197 | // Skip degenerate and transparent (empty) quads |
Romain Guy | 6cad757 | 2013-07-24 11:49:33 -0700 | [diff] [blame] | 198 | if ((mColors[oldQuadCount] == 0) || x1 >= x2 || y1 >= y2) { |
Romain Guy | fb13abd | 2011-01-16 15:16:38 -0800 | [diff] [blame] | 199 | #if DEBUG_PATCHES_EMPTY_VERTICES |
| 200 | PATCH_LOGD(" quad %d (empty)", oldQuadCount); |
Romain Guy | 6cad757 | 2013-07-24 11:49:33 -0700 | [diff] [blame] | 201 | PATCH_LOGD(" left, top = %.2f, %.2f\t\tu1, v1 = %.8f, %.8f", x1, y1, u1, v1); |
| 202 | PATCH_LOGD(" right, bottom = %.2f, %.2f\t\tu2, v2 = %.8f, %.8f", x2, y2, u2, v2); |
Romain Guy | fb13abd | 2011-01-16 15:16:38 -0800 | [diff] [blame] | 203 | #endif |
Romain Guy | 7444da5 | 2011-01-17 10:53:31 -0800 | [diff] [blame] | 204 | return; |
Romain Guy | 4bb9420 | 2010-10-12 15:59:26 -0700 | [diff] [blame] | 205 | } |
| 206 | |
Romain Guy | a5ef39a | 2010-12-03 16:48:20 -0800 | [diff] [blame] | 207 | // Record all non empty quads |
Romain Guy | 5b3b352 | 2010-10-27 18:57:51 -0700 | [diff] [blame] | 208 | if (hasEmptyQuads) { |
John Reck | 272a685 | 2015-07-29 16:48:58 -0700 | [diff] [blame] | 209 | quads.emplace_back(x1, y1, x2, y2); |
Romain Guy | 5b3b352 | 2010-10-27 18:57:51 -0700 | [diff] [blame] | 210 | } |
| 211 | |
Romain Guy | 3b748a4 | 2013-04-17 18:54:38 -0700 | [diff] [blame] | 212 | mUvMapper.map(u1, v1, u2, v2); |
| 213 | |
Romain Guy | 6820ac8 | 2010-09-15 18:11:50 -0700 | [diff] [blame] | 214 | TextureVertex::set(vertex++, x1, y1, u1, v1); |
| 215 | TextureVertex::set(vertex++, x2, y1, u2, v1); |
| 216 | TextureVertex::set(vertex++, x1, y2, u1, v2); |
Romain Guy | 6820ac8 | 2010-09-15 18:11:50 -0700 | [diff] [blame] | 217 | TextureVertex::set(vertex++, x2, y2, u2, v2); |
Romain Guy | a5ef39a | 2010-12-03 16:48:20 -0800 | [diff] [blame] | 218 | |
Romain Guy | 3b748a4 | 2013-04-17 18:54:38 -0700 | [diff] [blame] | 219 | verticesCount += 4; |
| 220 | indexCount += 6; |
Romain Guy | a5ef39a | 2010-12-03 16:48:20 -0800 | [diff] [blame] | 221 | |
| 222 | #if DEBUG_PATCHES_VERTICES |
| 223 | PATCH_LOGD(" quad %d", oldQuadCount); |
Romain Guy | 6cad757 | 2013-07-24 11:49:33 -0700 | [diff] [blame] | 224 | PATCH_LOGD(" left, top = %.2f, %.2f\t\tu1, v1 = %.8f, %.8f", x1, y1, u1, v1); |
| 225 | PATCH_LOGD(" right, bottom = %.2f, %.2f\t\tu2, v2 = %.8f, %.8f", x2, y2, u2, v2); |
Romain Guy | a5ef39a | 2010-12-03 16:48:20 -0800 | [diff] [blame] | 226 | #endif |
Romain Guy | fb5e23c | 2010-07-09 13:52:56 -0700 | [diff] [blame] | 227 | } |
| 228 | |
| 229 | }; // namespace uirenderer |
| 230 | }; // namespace android |