Searched defs:height (Results 276 - 300 of 574) sorted by last modified time

<<11121314151617181920>>

/frameworks/base/libs/hwui/
H A DLayerRenderer.cpp54 const float height = mLayer->layer.getHeight(); local
58 dirty.right >= width && dirty.bottom >= height)) {
60 dirty.set(0.0f, 0.0f, width, height);
62 dirty.intersect(0.0f, 0.0f, width, height);
165 const float height = mLayer->layer.getHeight(); local
173 const float v1 = (height - r->top) * texY;
175 const float v2 = (height - r->bottom) * texY;
188 Layer* LayerRenderer::createRenderLayer(RenderState& renderState, uint32_t width, uint32_t height) { argument
189 ATRACE_FORMAT("Allocate %ux%u HW Layer", width, height);
190 LAYER_RENDERER_LOGD("Requesting new render layer %dx%d", width, height);
257 resizeLayer(Layer* layer, uint32_t width, uint32_t height) argument
292 updateTextureLayer(Layer* layer, uint32_t width, uint32_t height, bool isOpaque, bool forceFilter, GLenum renderTarget, float* textureTransform) argument
[all...]
H A DOpenGLRenderer.cpp371 info.height = getViewportHeight();
1121 const float height = rect.getHeight(); local
1158 const float v1 = (height - r->top) * texY;
1160 const float v2 = (height - r->bottom) * texY;
1954 drawAlpha8TextureMesh(x, y, x + texture->width, y + texture->height, texture->id,
1994 if (quickRejectSetupScissor(0, 0, bitmap->width(), bitmap->height())) {
2006 drawTextureRect(0, 0, bitmap->width(), bitmap->height(), texture, paint);
2013 if (quickRejectSetupScissor(0, 0, bitmap->width(), bitmap->height())) {
2024 drawTextureRect(0, 0, bitmap->width(), bitmap->height(), texture, paint);
2164 const float height local
[all...]
H A DPatch.cpp51 float width, float height, const Res_png_9patch* patch) {
53 return createMesh(bitmapWidth, bitmapHeight, width, height, mapper, patch);
57 float width, float height, const UvMapper& mapper, const Res_png_9patch* patch) {
114 const float yStretch = fmaxf(height - fixed, 0.0f);
116 rescaleY = fixed == 0.0f ? 0.0f : fminf(fmaxf(height, 0.0f) / fixed, 1.0f);
155 y2 = height;
50 createMesh(const float bitmapWidth, const float bitmapHeight, float width, float height, const Res_png_9patch* patch) argument
56 createMesh(const float bitmapWidth, const float bitmapHeight, float width, float height, const UvMapper& mapper, const Res_png_9patch* patch) argument
H A DPathCache.cpp88 float& left, float& top, float& offset, uint32_t& width, uint32_t& height) {
90 PathCache::computeBounds(bounds, paint, left, top, offset, width, height);
94 float& left, float& top, float& offset, uint32_t& width, uint32_t& height) {
96 const float pathHeight = fmax(bounds.height(), 1.0f);
104 height = uint32_t(pathHeight + offset * 2.0 + 0.5);
107 static void initBitmap(SkBitmap& bitmap, uint32_t width, uint32_t height) { argument
108 bitmap.allocPixels(SkImageInfo::MakeA8(width, height));
125 float left, float top, float offset, uint32_t width, uint32_t height) {
126 initBitmap(bitmap, width, height);
137 uint32_t width, uint32_t height, uint32_
87 computePathBounds(const SkPath* path, const SkPaint* paint, float& left, float& top, float& offset, uint32_t& width, uint32_t& height) argument
93 computeBounds(const SkRect& bounds, const SkPaint* paint, float& left, float& top, float& offset, uint32_t& width, uint32_t& height) argument
124 drawPath(const SkPath *path, const SkPaint* paint, SkBitmap& bitmap, float left, float top, float offset, uint32_t width, uint32_t height) argument
136 createTexture(float left, float top, float offset, uint32_t width, uint32_t height, uint32_t id) argument
240 purgeCache(uint32_t width, uint32_t height) argument
261 uint32_t width, height; local
341 uint32_t width, height; local
504 getRoundRect(float width, float height, float rx, float ry, const SkPaint* paint) argument
550 getOval(float width, float height, const SkPaint* paint) argument
573 getRect(float width, float height, const SkPaint* paint) argument
596 getArc(float width, float height, float startAngle, float sweepAngle, bool useCenter, const SkPaint* paint) argument
[all...]
H A DPathCache.h189 PathTexture* getRoundRect(float width, float height, float rx, float ry, const SkPaint* paint);
191 PathTexture* getOval(float width, float height, const SkPaint* paint);
192 PathTexture* getRect(float width, float height, const SkPaint* paint);
193 PathTexture* getArc(float width, float height, float startAngle, float sweepAngle,
225 float& left, float& top, float& offset, uint32_t& width, uint32_t& height);
227 float& left, float& top, float& offset, uint32_t& width, uint32_t& height);
257 void purgeCache(uint32_t width, uint32_t height);
261 bool checkTextureSize(uint32_t width, uint32_t height) { argument
262 if (width > mMaxTextureSize || height > mMaxTextureSize) {
264 width, height, mMaxTextureSiz
[all...]
H A DPixelBuffer.cpp36 CpuPixelBuffer(GLenum format, uint32_t width, uint32_t height);
44 void upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset);
50 CpuPixelBuffer::CpuPixelBuffer(GLenum format, uint32_t width, uint32_t height): argument
51 PixelBuffer(format, width, height) {
52 mBuffer = new uint8_t[width * height * formatSize(format)];
74 void CpuPixelBuffer::upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset) { argument
75 glTexSubImage2D(GL_TEXTURE_2D, 0, x, y, width, height,
85 GpuPixelBuffer(GLenum format, uint32_t width, uint32_t height);
93 void upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset);
101 GpuPixelBuffer::GpuPixelBuffer(GLenum format, uint32_t width, uint32_t height) argument
149 upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset) argument
161 create(GLenum format, uint32_t width, uint32_t height, BufferType type) argument
[all...]
H A DPixelBuffer.h66 static PixelBuffer* create(GLenum format, uint32_t width, uint32_t height,
119 virtual void upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset) = 0;
129 void upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height) { argument
130 upload(x, y, width, height, getOffset(x, y));
141 * Returns the height of the render buffer in pixels.
202 PixelBuffer(GLenum format, uint32_t width, uint32_t height): argument
203 mFormat(format), mWidth(width), mHeight(height), mAccessMode(kAccessMode_None) {
H A DRect.h67 inline Rect(float width, float height): argument
71 bottom(height) {
H A DRenderBuffer.h35 RenderBuffer(GLenum format, uint32_t width, uint32_t height): argument
36 mFormat(format), mWidth(width), mHeight(height), mAllocated(false) {
92 void resize(uint32_t width, uint32_t height) { argument
93 if (isAllocated() && (width != mWidth || height != mHeight)) {
94 glRenderbufferStorage(GL_RENDERBUFFER, mFormat, width, height);
98 mHeight = height;
109 * Returns the height of the render buffer in pixels.
H A DRenderBufferCache.cpp110 RenderBuffer* RenderBufferCache::get(GLenum format, const uint32_t width, const uint32_t height) { argument
113 RenderBufferEntry entry(format, width, height);
124 RenderBuffer::formatName(format), width, height);
126 buffer = new RenderBuffer(format, width, height);
129 RenderBuffer::formatName(format), width, height);
H A DRenderBufferCache.h46 * @param height The desired height of the buffer
48 RenderBuffer* get(GLenum format, const uint32_t width, const uint32_t height);
84 RenderBufferEntry(GLenum format, const uint32_t width, const uint32_t height): argument
85 mBuffer(NULL), mFormat(format), mWidth(width), mHeight(height) {
H A DRenderState.cpp84 void RenderState::setViewport(GLsizei width, GLsizei height) { argument
86 mViewportHeight = height;
H A DSkiaShader.cpp181 const float height = layer->getHeight(); local
197 glUniform2f(program->getUniform("textureDimension"), 1.0f / width, 1.0f / height);
206 float height; member in struct:android::uirenderer::BitmapShaderInfo
220 const float height = texture->height; local
228 if (!extensions.hasNPot() && (!isPowerOfTwo(width) || !isPowerOfTwo(height)) &&
245 shaderInfo->height = height;
296 1.0f / shaderInfo.height);
H A DSnapshot.h157 void initializeViewport(int width, int height) { argument
158 mViewportData.initialize(width, height);
282 void initialize(int width, int height) { argument
284 mHeight = height;
285 mOrthoMatrix.loadOrtho(0, width, height, 0, -1, 1);
289 * Width and height of current viewport.
291 * The viewport is always defined to be (0, 0, width, height).
H A DStatefulBaseRenderer.cpp47 void StatefulBaseRenderer::setViewport(int width, int height) { argument
49 mHeight = height;
50 mFirstSnapshot->initializeViewport(width, height);
H A DTessellationCache.cpp446 description.shape.roundRect.height);
462 float width, float height, float rx, float ry) {
465 entry.shape.roundRect.height = height;
471 float width, float height, float rx, float ry) {
472 return getRoundRectBuffer(transform, paint, width, height, rx, ry)->getVertexBuffer();
460 getRoundRectBuffer( const Matrix4& transform, const SkPaint& paint, float width, float height, float rx, float ry) argument
470 getRoundRect(const Matrix4& transform, const SkPaint& paint, float width, float height, float rx, float ry) argument
H A DTessellationCache.h65 float height; member in struct:android::uirenderer::TessellationCache::Description::Shape::RoundRect
125 float width, float height, float rx, float ry) {
126 getRoundRectBuffer(transform, paint, width, height, rx, ry);
129 float width, float height, float rx, float ry);
150 float width, float height);
152 float width, float height, float rx, float ry);
124 precacheRoundRect(const Matrix4& transform, const SkPaint& paint, float width, float height, float rx, float ry) argument
H A DTexture.h78 uint32_t height; member in class:android::uirenderer::Texture
H A DTextureCache.cpp140 if (bitmap->width() > mMaxTextureSize || bitmap->height() > mMaxTextureSize) {
142 bitmap->width(), bitmap->height(), mMaxTextureSize, mMaxTextureSize);
165 const uint32_t size = bitmap->rowBytes() * bitmap->height();
215 const uint32_t size = bitmap->rowBytes() * bitmap->height();
227 texture->bitmapSize = bitmap->rowBytes() * bitmap->height();
280 ATRACE_FORMAT("Upload %ux%u Texture", bitmap->width(), bitmap->height());
289 bitmap->height() != int(texture->height) ||
298 texture->height = bitmap->height();
347 uploadLoFiTexture(bool resize, const SkBitmap* bitmap, uint32_t width, uint32_t height) argument
360 uploadToTexture(bool resize, GLenum format, GLsizei stride, GLsizei bpp, GLsizei width, GLsizei height, GLenum type, const GLvoid * data) argument
[all...]
/frameworks/base/libs/hwui/font/
H A DCacheTexture.cpp111 CacheTexture::CacheTexture(uint16_t width, uint16_t height, GLenum format, uint32_t maxQuadCount) : argument
112 mTexture(NULL), mTextureId(0), mWidth(width), mHeight(height), mFormat(format),
212 uint32_t height = dirtyRect.getHeight(); local
220 mTexture->upload(x, y, width, height);
276 // it's the remainder space (mY == 0) or there's only enough height for this one glyph
298 // There's enough height left over to create a new CacheBlock
H A DCacheTexture.h57 CacheBlock(uint16_t x, uint16_t y, uint16_t width, uint16_t height): argument
58 mX(x), mY(y), mWidth(width), mHeight(height), mNext(NULL), mPrev(NULL) {
77 CacheTexture(uint16_t width, uint16_t height, GLenum format, uint32_t maxQuadCount);
H A DFont.cpp144 int height = (int) glyph->mBitmapHeight; local
158 if (bounds->top < nPenY + height) {
159 bounds->top = nPenY + height;
166 float height = (float) glyph->mBitmapHeight; local
169 float nPenY = y + glyph->mBitmapTop + height;
178 nPenX + width, nPenY - height, u2, v1,
179 nPenX, nPenY - height, u1, v1, glyph->mCacheTexture);
185 float height = (float) glyph->mBitmapHeight; local
188 p[0].iset(glyph->mBitmapLeft, glyph->mBitmapTop + height);
189 p[1].iset(glyph->mBitmapLeft + width, glyph->mBitmapTop + height);
246 const float height = glyph->mBitmapHeight; local
[all...]
/frameworks/base/libs/hwui/renderthread/
H A DCanvasContext.cpp131 void CanvasContext::setup(int width, int height, const Vector3& lightCenter, float lightRadius, argument
211 EGLint width, height; local
212 mEglManager.beginFrame(mEglSurface, &width, &height);
213 if (width != mCanvas->getViewportWidth() || height != mCanvas->getViewportHeight()) {
214 mCanvas->setViewport(width, height);
219 if (!dirty.isEmpty() && !dirty.intersect(0, 0, width, height)) {
221 SK_RECT_ARGS(dirty), width, height);
H A DEglManager.cpp249 void EglManager::beginFrame(EGLSurface surface, EGLint* width, EGLint* height) { argument
256 if (height) {
257 eglQuerySurface(mEglDisplay, surface, EGL_HEIGHT, height);
H A DRenderProxy.cpp169 CREATE_BRIDGE7(setup, CanvasContext* context, int width, int height, argument
172 args->context->setup(args->width, args->height, args->lightCenter, args->lightRadius,
177 void RenderProxy::setup(int width, int height, const Vector3& lightCenter, float lightRadius, argument
182 args->height = height;

Completed in 165 milliseconds

<<11121314151617181920>>