/frameworks/base/libs/hwui/renderstate/ |
OffscreenBufferPool.cpp | 37 uint32_t viewportHeight, bool wideColorGamut) 41 , viewportHeight(viewportHeight) 45 uint32_t height = computeIdealDimension(viewportHeight); 58 return Rect(0, viewportHeight * texY, viewportWidth * texX, 0); 62 dirtyArea.doIntersect(0, 0, viewportWidth, viewportHeight); 88 const float v1 = (viewportHeight - r->top) * texY; 90 const float v2 = (viewportHeight - r->bottom) * texY; 158 layer->viewportHeight = height; 175 layer->viewportHeight = height [all...] |
Scissor.cpp | 70 void Scissor::set(int viewportHeight, const Rect& clip) { 73 GLint y = std::max(0, viewportHeight - (int)clip.bottom); 75 GLint height = std::max(0, (viewportHeight - (int)clip.top) - y);
|
Scissor.h | 33 void set(int viewportHeight, const Rect& clip);
|
OffscreenBufferPool.h | 38 * Has two distinct sizes - viewportWidth/viewportHeight describe content area, 46 uint32_t viewportHeight, bool wideColorGamut = false); 68 uint32_t viewportHeight;
|
/frameworks/base/libs/hwui/ |
CanvasState.cpp | 40 void CanvasState::initializeRecordingSaveStack(int viewportWidth, int viewportHeight) { 41 if (mWidth != viewportWidth || mHeight != viewportHeight) { 43 mHeight = viewportHeight; 44 mFirstSnapshot.initializeViewport(viewportWidth, viewportHeight); 54 void CanvasState::initializeSaveStack(int viewportWidth, int viewportHeight, float clipLeft, 57 if (mWidth != viewportWidth || mHeight != viewportHeight) { 59 mHeight = viewportHeight; 60 mFirstSnapshot.initializeViewport(viewportWidth, viewportHeight);
|
BakedOpRenderer.cpp | 50 offscreenBuffer->viewportHeight)) { 77 setViewport(offscreenBuffer->viewportWidth, offscreenBuffer->viewportHeight); 112 mRenderTarget.viewportHeight - area.bottom, width, height); 132 Rect viewportRect(mRenderTarget.viewportWidth, mRenderTarget.viewportHeight); 163 mRenderTarget.viewportHeight = height; 171 if (rect.contains(Rect(mRenderTarget.viewportWidth, mRenderTarget.viewportHeight))) { 177 mRenderState.scissor().set(rect.left, mRenderTarget.viewportHeight - rect.bottom, 294 mRenderState.scissor().set(mRenderTarget.viewportHeight, clip->rect); 369 info.height = mRenderTarget.viewportHeight;
|
CanvasState.h | 83 void initializeRecordingSaveStack(int viewportWidth, int viewportHeight); 89 void initializeSaveStack(int viewportWidth, int viewportHeight, float clipLeft, float clipTop,
|
BakedOpRenderer.h | 91 uint32_t getViewportHeight() const { return mRenderTarget.viewportHeight; } 140 uint32_t viewportHeight = 0;
|
VectorDrawable.h | 521 (mProperties.mNonAnimatableProperties.viewportHeight != 522 mStagingProperties.mNonAnimatableProperties.viewportHeight) || 549 float viewportHeight = 0; 572 mNonAnimatableProperties.viewportHeight != height) { 575 mNonAnimatableProperties.viewportHeight = height; 610 float getViewportHeight() const { return mNonAnimatableProperties.viewportHeight; }
|
/frameworks/base/libs/hwui/tests/unit/ |
OffscreenBufferPoolTests.cpp | 36 EXPECT_EQ(149u, layer.viewportHeight); 47 EXPECT_EQ(149u, layer.viewportHeight); 84 EXPECT_EQ(200u, layer->viewportHeight); 107 EXPECT_EQ(200u, layer->viewportHeight); 153 EXPECT_EQ(55u, layer->viewportHeight); 167 EXPECT_EQ(125u, layer2->viewportHeight); 186 EXPECT_EQ(55u, layer->viewportHeight); 205 EXPECT_EQ(125u, layer2->viewportHeight);
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
ZoomView.java | 234 public static RectF adjustToFitInBounds(RectF rect, int viewportWidth, int viewportHeight) { 247 if (newRect.height() < viewportHeight) { 248 dy = viewportHeight / 2 - (newRect.top + newRect.bottom) / 2; 252 } else if (newRect.bottom < viewportHeight) { 253 dy = viewportHeight - newRect.bottom;
|
/external/deqp/external/vulkancts/modules/vulkan/texture/ |
vktTextureMipmapTests.cpp | 264 const int viewportHeight = m_renderer.getRenderHeight(); 272 tcu::Surface renderedFrame (viewportWidth, viewportHeight); 278 const int cellHeight = viewportHeight / gridHeight; 306 const int curH = gridY+1 == gridHeight ? (viewportHeight-curY) : cellHeight; 335 tcu::Surface referenceFrame (viewportWidth, viewportHeight); 336 tcu::Surface errorMask (viewportWidth, viewportHeight); 355 const int curH = gridY+1 == gridHeight ? (viewportHeight-curY) : cellHeight; 505 const int viewportHeight = m_renderer.getRenderHeight(); 512 tcu::Surface renderedFrame (viewportWidth, viewportHeight); 521 computeGridLayout(gridLayout, viewportWidth, viewportHeight); [all...] |
/external/deqp/modules/gles2/accuracy/ |
es2aVaryingInterpolationTests.cpp | 156 int viewportHeight = 128; 159 m_context.getRenderTarget().getHeight() < viewportHeight) 163 int viewportY = rnd.getInt(0, m_context.getRenderTarget().getHeight() - viewportHeight); 256 tcu::Surface rendered (viewportWidth, viewportHeight); 257 tcu::Surface reference (viewportWidth, viewportHeight); 260 glViewport(viewportX, viewportY, viewportWidth, viewportHeight);
|
/external/deqp/modules/gles3/accuracy/ |
es3aVaryingInterpolationTests.cpp | 159 int viewportHeight = 128; 162 renderTarget.getHeight() < viewportHeight) 166 int viewportY = rnd.getInt(0, renderTarget.getHeight() - viewportHeight); 262 tcu::Surface rendered (viewportWidth, viewportHeight); 263 tcu::Surface reference (viewportWidth, viewportHeight); 266 glViewport(viewportX, viewportY, viewportWidth, viewportHeight);
|
/frameworks/base/libs/hwui/pipeline/skia/ |
GLFunctorDrawable.cpp | 44 static void setScissor(int viewportHeight, const SkIRect& clip) { 47 GLint y = viewportHeight - clip.fBottom; 48 GLint height = (viewportHeight - clip.fTop) - y;
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/anim/ |
BenefitsAnimation.java | 150 int viewportHeight = mActivity.findViewById(R.id.suw_layout_content).getHeight(); 151 if (contentHeight > viewportHeight) { 152 int targetHeight = layoutParams.height - (contentHeight - viewportHeight);
|
/external/deqp/modules/gles2/functional/ |
es2fVertexTextureTests.cpp | 555 const int viewportHeight = deMin32(m_context.getRenderTarget().getHeight(), MAX_2D_RENDER_HEIGHT); 558 const int viewportYOffsetMax = m_context.getRenderTarget().getHeight() - viewportHeight; 570 const int bottomHeight = viewportHeight / 2; 571 const int topHeight = viewportHeight - bottomHeight; 584 tcu::Surface refImage(viewportWidth, viewportHeight); 617 tcu::Surface resImage(viewportWidth, viewportHeight); 873 const int viewportHeight = deMin32(m_context.getRenderTarget().getHeight(), MAX_CUBE_RENDER_HEIGHT); 876 const int viewportYOffsetMax = m_context.getRenderTarget().getHeight() - viewportHeight; 888 const int bottomHeight = viewportHeight / 2; 889 const int topHeight = viewportHeight - bottomHeight [all...] |
es2fTextureUnitTests.cpp | 762 int viewportHeight = deMin32(VIEWPORT_HEIGHT, renderTarget.getHeight()); 764 int viewportY = rnd.getInt(0, renderTarget.getHeight() - viewportHeight); 766 tcu::Surface gles2Frame (viewportWidth, viewportHeight); 767 tcu::Surface refFrame (viewportWidth, viewportHeight); 790 m_shader->makeSafeLods(texSizes, IVec2(viewportWidth, viewportHeight)); 795 sglr::GLContext context(renderCtx, log, sglr::GLCONTEXT_LOG_CALLS|sglr::GLCONTEXT_LOG_PROGRAMS, tcu::IVec4(viewportX, viewportY, viewportWidth, viewportHeight)); 799 context.readPixels(gles2Frame, 0, 0, viewportWidth, viewportHeight); 804 sglr::ReferenceContextBuffers buffers (tcu::PixelFormat(8,8,8,renderTarget.getPixelFormat().alphaBits?8:0), 0 /* depth */, 0 /* stencil */, viewportWidth, viewportHeight); 809 context.readPixels(refFrame, 0, 0, viewportWidth, viewportHeight); [all...] |
es2fTextureCompletenessTests.cpp | 149 int viewportHeight = de::min(64, m_renderCtx.getRenderTarget().getHeight()); 152 tcu::Surface renderedFrame (viewportWidth, viewportHeight); 157 int offsetY = random.getInt(0, m_renderCtx.getRenderTarget().getHeight() - viewportHeight); 161 glViewport (offsetX, offsetY, viewportWidth, viewportHeight); 206 int viewportHeight = de::min(64, m_renderCtx.getRenderTarget().getHeight()); 210 tcu::Surface renderedFrame (viewportWidth, viewportHeight); 225 glViewport (offsetX, offsetY, viewportWidth, viewportHeight); [all...] |
/external/deqp/modules/gles3/functional/ |
es3fVertexTextureTests.cpp | 655 const int viewportHeight = deMin32(m_context.getRenderTarget().getHeight(), MAX_2D_RENDER_HEIGHT); 658 const int viewportYOffsetMax = m_context.getRenderTarget().getHeight() - viewportHeight; 670 const int bottomHeight = viewportHeight / 2; 671 const int topHeight = viewportHeight - bottomHeight; 684 tcu::Surface refImage(viewportWidth, viewportHeight); 717 tcu::Surface resImage(viewportWidth, viewportHeight); [all...] |
es3fTextureUnitTests.cpp | [all...] |
/external/replicaisland/src/com/replica/replicaisland/ |
GameRenderer.java | 275 final int viewportHeight = (int)(mHeight * scaleY); 276 gl.glViewport(0, 0, viewportWidth, viewportHeight);
|
/external/deqp/external/openglcts/modules/gl/ |
gl4cShaderViewportLayerArrayTests.cpp | 283 GLfloat viewportHeight = 16.0f; 296 GLfloat y = (GLfloat)currentY * viewportHeight; 301 data[i * viewportDataSize + 3] = viewportHeight; 303 m_viewportData.push_back(tcu::Vec4(x, y, viewportWidth, viewportHeight));
|
/frameworks/support/graphics/drawable/static/src/main/java/androidx/vectordrawable/graphics/drawable/ |
AndroidResources.java | 25 android.R.attr.tintMode, android.R.attr.viewportWidth, android.R.attr.viewportHeight
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
ShadowResourcesTest.java | 671 // This simulates a ResourceProvider built from a 21+ SDK as viewportHeight / viewportWidth were introduced in API 21 678 .addAttribute(android.R.attr.viewportHeight, "24.0") 683 android.R.attr.viewportHeight 693 // This simulates a ResourceProvider built from a 21+ SDK as viewportHeight / viewportWidth were introduced in API 21 705 android.R.attr.viewportHeight 715 // This simulates a ResourceProvider built from a 21+ SDK as viewportHeight / viewportWidth were introduced in API 21 722 .addAttribute(android.R.attr.viewportHeight, "@integer/test_integer2") 727 android.R.attr.viewportHeight 737 assertThat(RuntimeEnvironment.application.getResources().getResourceName(android.R.attr.viewportHeight)) 738 .isEqualTo("android:attr/viewportHeight"); [all...] |