Searched defs:height (Results 276 - 300 of 674) sorted by path

<<11121314151617181920>>

/frameworks/base/libs/hwui/
H A DPixelBuffer.h67 static PixelBuffer* create(GLenum format, uint32_t width, uint32_t height,
112 virtual void upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset) = 0;
122 void upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height) { argument
123 upload(x, y, width, height, getOffset(x, y));
134 * Returns the height of the render buffer in pixels.
195 PixelBuffer(GLenum format, uint32_t width, uint32_t height): argument
196 mFormat(format), mWidth(width), mHeight(height), mAccessMode(kAccessMode_None) {
H A DRecordingCanvas.cpp27 RecordingCanvas::RecordingCanvas(size_t width, size_t height) argument
30 resetRecording(width, height);
38 void RecordingCanvas::resetRecording(int width, int height) { argument
43 mState.initializeRecordingSaveStack(width, height);
487 && srcBottom == bitmap.height()
556 Rect(bitmap->width(), bitmap->height()),
589 // its width, height, transform, etc...!
H A DRect.h69 inline Rect(float width, float height): argument
73 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.cpp97 RenderBuffer* RenderBufferCache::get(GLenum format, const uint32_t width, const uint32_t height) { argument
100 RenderBufferEntry entry(format, width, height);
111 RenderBuffer::formatName(format), width, height);
113 buffer = new RenderBuffer(format, width, height);
116 RenderBuffer::formatName(format), width, height);
H A DRenderBufferCache.h47 * @param height The desired height of the buffer
49 RenderBuffer* get(GLenum format, const uint32_t width, const uint32_t height);
81 RenderBufferEntry(GLenum format, const uint32_t width, const uint32_t height): argument
82 mBuffer(nullptr), mFormat(format), mWidth(width), mHeight(height) {
H A DRenderNode.cpp275 static layer_t* createLayer(RenderState& renderState, uint32_t width, uint32_t height) { argument
277 return renderState.layerPool().get(renderState, width, height);
279 return LayerRenderer::createRenderLayer(renderState, width, height);
292 static bool layerMatchesWidthAndHeight(layer_t* layer, int width, int height) { argument
294 return layer->viewportWidth == (uint32_t) width && layer->viewportHeight == (uint32_t)height;
296 return layer->layer.getWidth() == width && layer->layer.getHeight() == height;
927 * This way, if Views A & B have the same Z height and are both casting shadows, the shadows are
H A DSkiaCanvas.cpp62 virtual void resetRecording(int width, int height) override {
78 virtual int height() override;
257 int SkiaCanvas::height() { function in class:android::SkiaCanvas
258 return mCanvas->imageInfo().height();
673 const SkScalar h = SkIntToScalar(bitmap.height());
H A DSkiaShader.cpp223 const float height = outData->bitmapTexture->height(); local
227 && (!isPowerOfTwo(width) || !isPowerOfTwo(height))
243 outData->textureDimension[1] = 1.0f / height;
337 const float height = layer->getHeight(); local
343 outData->textureDimension[1] = 1.0f / height;
H A DSnapshot.h187 void initializeViewport(int width, int height) { argument
188 mViewportData.initialize(width, height);
189 mClipAreaRoot.setViewportDimensions(width, height);
316 void initialize(int width, int height) { argument
318 mHeight = height;
319 mOrthoMatrix.loadOrtho(0, width, height, 0, -1, 1);
323 * Width and height of current viewport.
325 * The viewport is always defined to be (0, 0, width, height).
H A DTessellationCache.cpp73 if (lRect.height != rRect.height) return false;
440 description.shape.roundRect.height);
456 float width, float height, float rx, float ry) {
459 entry.shape.roundRect.height = height;
465 float width, float height, float rx, float ry) {
466 return getRoundRectBuffer(transform, paint, width, height, rx, ry)->getVertexBuffer();
454 getRoundRectBuffer( const Matrix4& transform, const SkPaint& paint, float width, float height, float rx, float ry) argument
464 getRoundRect(const Matrix4& transform, const SkPaint& paint, float width, float height, float rx, float ry) argument
H A DTessellationCache.h71 float height; member in struct:android::uirenderer::TessellationCache::Description::Shape::RoundRect
158 float width, float height, float rx, float ry) {
159 getRoundRectBuffer(transform, paint, width, height, rx, ry);
162 float width, float height, float rx, float ry);
188 float width, float height);
190 float width, float height, float rx, float ry);
157 precacheRoundRect(const Matrix4& transform, const SkPaint& paint, float width, float height, float rx, float ry) argument
H A DTexture.cpp86 bool Texture::updateSize(uint32_t width, uint32_t height, GLint format) { argument
87 if (mWidth == width && mHeight == height && mFormat == format) {
91 mHeight = height;
104 void Texture::upload(GLint internalformat, uint32_t width, uint32_t height, argument
107 bool needsAlloc = updateSize(width, height, internalformat);
125 GLsizei width, GLsizei height, const GLvoid * data) {
135 glTexImage2D(GL_TEXTURE_2D, 0, format, width, height, 0, format, type, data);
137 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, width, height, format, type, data);
147 GLvoid * temp = (GLvoid *) malloc(width * height * bpp);
152 for (GLsizei i = 0; i < height;
124 uploadToTexture(bool resize, GLenum format, GLenum type, GLsizei stride, GLsizei bpp, GLsizei width, GLsizei height, const GLvoid * data) argument
265 wrap(GLuint id, uint32_t width, uint32_t height, GLint format) argument
[all...]
H A DTexture.h66 * Sets the width, height, and format of the texture along with allocating
67 * the texture ID. Does nothing if the width, height, and format are already
72 void resize(uint32_t width, uint32_t height, GLint format) { argument
73 upload(format, width, height, format, GL_UNSIGNED_BYTE, nullptr);
78 * also setting the appropriate width, height, and format. It is not necessary
88 void upload(GLint internalformat, uint32_t width, uint32_t height,
94 void wrap(GLuint id, uint32_t width, uint32_t height, GLint format);
104 uint32_t height() const { function in class:android::uirenderer::Texture
151 bool updateSize(uint32_t width, uint32_t height, GLint format);
H A DVectorDrawable.cpp78 // return the minimal height of the 2 bases.
476 int scaledHeight = (int) (bounds.height() * canvasScaleY);
518 mStagingCache.bitmap.width(), mStagingCache.bitmap.height(),
558 float scaleY = outCache->height() / viewportHeight;
562 bool Tree::allocateBitmapIfNeeded(SkBitmap* outCache, int width, int height) { argument
563 if (!canReuseBitmap(*outCache, width, height)) {
564 SkImageInfo info = SkImageInfo::Make(width, height,
574 bool Tree::canReuseBitmap(const SkBitmap& bitmap, int width, int height) { argument
575 return width == bitmap.width() && height == bitmap.height();
[all...]
H A DVectorDrawable.h607 void setViewportSize(float width, float height) { argument
609 || mNonAnimatableProperties.viewportHeight != height) {
612 mNonAnimatableProperties.viewportHeight = height;
624 void setScaledSize(int width, int height) { argument
626 || mNonAnimatableProperties.scaledHeight != height) {
628 mNonAnimatableProperties.scaledHeight = height;
693 bool allocateBitmapIfNeeded(SkBitmap* outCache, int width, int height);
694 bool canReuseBitmap(const SkBitmap&, int width, int height);
/frameworks/base/libs/hwui/debug/
H A Dnullgles.cpp185 void glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data) {} argument
186 void glCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data) {} argument
187 void glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) {} argument
188 void glCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) {} argument
218 void glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels) {} argument
220 void glRenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height) {} argument
222 void glScissor(GLint x, GLint y, GLsizei width, GLsizei height) {} argument
231 void glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels) {} argument
236 void glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels) {} argument
267 void glViewport(GLint x, GLint y, GLsizei width, GLsizei height) {} argument
[all...]
/frameworks/base/libs/hwui/font/
H A DCacheTexture.cpp112 CacheTexture::CacheTexture(uint16_t width, uint16_t height, GLenum format, uint32_t maxQuadCount) argument
115 , mHeight(height)
194 uint32_t height = dirtyRect.getHeight(); local
202 mPixelBuffer->upload(x, y, width, height);
258 // it's the remainder space (mY == 0) or there's only enough height for this one glyph
280 // There's enough height left over to create a new CacheBlock
H A DCacheTexture.h56 CacheBlock(uint16_t x, uint16_t y, uint16_t width, uint16_t height): argument
57 mX(x), mY(y), mWidth(width), mHeight(height), mNext(nullptr), mPrev(nullptr) {
76 CacheTexture(uint16_t width, uint16_t height, GLenum format, uint32_t maxQuadCount);
H A DFont.cpp138 int height = (int) glyph->mBitmapHeight; local
152 if (bounds->top < nPenY + height) {
153 bounds->top = nPenY + height;
160 float height = (float) glyph->mBitmapHeight; local
163 float nPenY = y + glyph->mBitmapTop + height;
172 nPenX + width, nPenY - height, u2, v1,
173 nPenX, nPenY - height, u1, v1, glyph->mCacheTexture);
179 float height = (float) glyph->mBitmapHeight; local
182 p[0].iset(glyph->mBitmapLeft, glyph->mBitmapTop + height);
183 p[1].iset(glyph->mBitmapLeft + width, glyph->mBitmapTop + height);
240 const float height = glyph->mBitmapHeight; local
[all...]
/frameworks/base/libs/hwui/hwui/
H A DCanvas.cpp29 Canvas* Canvas::create_recording_canvas(int width, int height) { argument
31 return new uirenderer::RecordingCanvas(width, height);
33 return new uirenderer::DisplayListCanvas(width, height);
/frameworks/base/libs/hwui/renderstate/
H A DOffscreenBufferPool.cpp44 uint32_t height = computeIdealDimension(viewportHeight); local
45 ATRACE_FORMAT("Allocate %ux%u HW Layer", width, height);
47 texture.resize(width, height, GL_RGBA);
55 const float texY = 1.0f / static_cast<float>(texture.height());
77 const float texY = 1.0f / float(texture.height());
106 ATRACE_FORMAT("Destroy %ux%u HW Layer", texture.width(), texture.height());
129 return int(lhs.height) - int(rhs.height);
141 const uint32_t width, const uint32_t height) {
144 Entry entry(width, height);
140 get(RenderState& renderState, const uint32_t width, const uint32_t height) argument
162 resize(OffscreenBuffer* layer, const uint32_t width, const uint32_t height) argument
[all...]
H A DOffscreenBufferPool.h39 * texture.width/.height are actual allocated texture size. Texture will tend to be larger than the
40 * viewport bounds, since textures are always allocated with width / height as a multiple of 64, for
93 const uint32_t width, const uint32_t height);
96 const uint32_t width, const uint32_t height);
127 , height(OffscreenBuffer::computeIdealDimension(layerHeight)) {}
132 , height(layer->texture.height()) {
151 uint32_t height = 0; member in struct:android::uirenderer::OffscreenBufferPool::Entry
H A DRenderState.cpp128 void RenderState::setViewport(GLsizei width, GLsizei height) { argument
130 mViewportHeight = height;
H A DScissor.cpp46 bool Scissor::set(GLint x, GLint y, GLint width, GLint height) { argument
48 || width != mScissorWidth || height != mScissorHeight)) {
55 height += y;
61 if (height < 0) {
62 height = 0;
64 glScissor(x, y, width, height);
69 mScissorHeight = height;
81 GLint height = std::max(0, (viewportHeight - (int)clip.top) - y); local
86 || height != mScissorHeight) {
87 glScissor(x, y, width, height);
[all...]

Completed in 159 milliseconds

<<11121314151617181920>>