Home
last modified time | relevance | path

Searched refs:viewport (Results 1 – 25 of 484) sorted by relevance

12345678910>>...20

/external/chromium_org/ui/gfx/
Dtransform_util_unittest.cc40 Rect viewport(1920, 1200); in TEST() local
41 bool snapped = SnapTransform(&result, transform, viewport); in TEST()
53 Rect viewport(kOffset, kOffset, 1920, 1200); in TEST() local
54 bool snapped = SnapTransform(&result, transform, viewport); in TEST()
66 Rect viewport(kOffset, kOffset, 1920, 1200); in TEST() local
67 bool snapped = SnapTransform(&result, transform, viewport); in TEST()
81 Rect viewport(1920, 1200); in TEST() local
82 bool snapped = SnapTransform(&result, transform, viewport); in TEST()
95 Rect viewport(kOffset, kOffset, 1920, 1200); in TEST() local
96 bool snapped = SnapTransform(&result, transform, viewport); in TEST()
[all …]
/external/skia/src/gpu/gl/
DGrGLRenderTarget.cpp17 const GrGLIRect& viewport, in init() argument
22 fViewport = viewport; in init()
45 const GrGLIRect& viewport, in GrGLRenderTarget() argument
52 viewport.fWidth, viewport.fHeight, in GrGLRenderTarget()
62 SkASSERT(viewport.fWidth == texture->width()); in GrGLRenderTarget()
63 SkASSERT(viewport.fHeight == texture->height()); in GrGLRenderTarget()
65 this->init(desc, viewport, texID); in GrGLRenderTarget()
70 const GrGLIRect& viewport) in GrGLRenderTarget() argument
75 viewport.fWidth, viewport.fHeight, in GrGLRenderTarget()
78 this->init(desc, viewport, NULL); in GrGLRenderTarget()
/external/chromium_org/third_party/skia/src/gpu/gl/
DGrGLRenderTarget.cpp17 const GrGLIRect& viewport, in init() argument
22 fViewport = viewport; in init()
46 const GrGLIRect& viewport, in GrGLRenderTarget() argument
53 viewport.fWidth, viewport.fHeight, in GrGLRenderTarget()
63 SkASSERT(viewport.fWidth == texture->width()); in GrGLRenderTarget()
64 SkASSERT(viewport.fHeight == texture->height()); in GrGLRenderTarget()
66 this->init(desc, viewport, texID); in GrGLRenderTarget()
71 const GrGLIRect& viewport) in GrGLRenderTarget() argument
76 viewport.fWidth, viewport.fHeight, in GrGLRenderTarget()
79 this->init(desc, viewport, NULL); in GrGLRenderTarget()
/external/deqp/modules/gles2/functional/
Des2fTextureFormatTests.cpp140 …RandomViewport viewport (m_renderCtx.getRenderTarget(), m_width, m_height, deStringHash(getNam… in iterate() local
141 tcu::Surface renderedFrame (viewport.width, viewport.height); in iterate()
142 tcu::Surface referenceFrame (viewport.width, viewport.height); in iterate()
168 gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height); in iterate()
187 glu::readPixels(m_renderCtx, viewport.x, viewport.y, renderedFrame.getAccess()); in iterate()
316 …RandomViewport viewport (m_renderCtx.getRenderTarget(), m_width, m_height, deStringHash(getNam… in testFace() local
317 tcu::Surface renderedFrame (viewport.width, viewport.height); in testFace()
318 tcu::Surface referenceFrame (viewport.width, viewport.height); in testFace()
340 gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height); in testFace()
355 glu::readPixels(m_renderCtx, viewport.x, viewport.y, renderedFrame.getAccess()); in testFace()
[all …]
Des2fTextureWrapTests.cpp163 …RandomViewport viewport (m_renderCtx.getRenderTarget(), VIEWPORT_WIDTH, VIEWPORT_HEIGHT, deStr… in iterate() local
164 tcu::Surface renderedFrame (viewport.width, viewport.height); in iterate()
165 tcu::Surface referenceFrame (viewport.width, viewport.height); in iterate()
168 int leftWidth = viewport.width / 2; in iterate()
169 int rightWidth = viewport.width - leftWidth; in iterate()
192 gl.viewport(viewport.x, viewport.y, leftWidth, viewport.height); in iterate()
197 glu::readPixels(m_renderCtx, viewport.x, viewport.y, renderedFrame.getAccess()); in iterate()
199 …(referenceFrame, m_renderCtx.getRenderTarget().getPixelFormat(), 0, 0, leftWidth, viewport.height), in iterate()
205 gl.viewport(viewport.x+leftWidth, viewport.y, rightWidth, viewport.height); in iterate()
210 glu::readPixels(m_renderCtx, viewport.x, viewport.y, renderedFrame.getAccess()); in iterate()
[all …]
Des2fTextureSizeTests.cpp121 RandomViewport viewport (m_renderCtx.getRenderTarget(), 128, 128, deStringHash(getName())); in iterate() local
122 tcu::Surface renderedFrame (viewport.width, viewport.height); in iterate()
123 tcu::Surface referenceFrame (viewport.width, viewport.height); in iterate()
134 gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height); in iterate()
151 glu::readPixels(m_renderCtx, viewport.x, viewport.y, renderedFrame.getAccess()); in iterate()
264 …RandomViewport viewport (m_renderCtx.getRenderTarget(), 128, 128, deStringHash(getName())+(deUi… in testFace() local
265 tcu::Surface renderedFrame (viewport.width, viewport.height); in testFace()
266 tcu::Surface referenceFrame (viewport.width, viewport.height); in testFace()
280 gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height); in testFace()
293 glu::readPixels(m_renderCtx, viewport.x, viewport.y, renderedFrame.getAccess()); in testFace()
Des2fTextureMipmapTests.cpp260 …const RandomViewport viewport (m_renderCtx.getRenderTarget(), defViewportWidth, defViewportHeig… in iterate() local
267 tcu::Surface renderedFrame (viewport.width, viewport.height); in iterate()
272 int cellWidth = viewport.width / gridWidth; in iterate()
273 int cellHeight = viewport.height / gridHeight; in iterate()
276 if (viewport.width < defViewportWidth/2 || viewport.height < defViewportHeight/2) in iterate()
316 const int curW = gridX+1 == gridWidth ? (viewport.width-curX) : cellWidth; in iterate()
317 const int curH = gridY+1 == gridHeight ? (viewport.height-curY) : cellHeight; in iterate()
337 gl.viewport(viewport.x+curX, viewport.y+curY, curW, curH); in iterate()
343 glu::readPixels(m_renderCtx, viewport.x, viewport.y, renderedFrame.getAccess()); in iterate()
349 tcu::Surface referenceFrame (viewport.width, viewport.height); in iterate()
[all …]
/external/chromium-trace/trace-viewer/src/tracing/tracks/
Dslice_track_test.js22 var viewport = new Viewport(div);
23 var drawingContainer = new tracing.tracks.DrawingContainer(viewport);
26 var track = SliceTrack(viewport);
37 track.viewport.xSetWorldBounds(0, 8.8, track.clientWidth);
44 var viewport = new Viewport(div);
45 var drawingContainer = new tracing.tracks.DrawingContainer(viewport);
48 var track = SliceTrack(viewport);
62 track.viewport.xSetWorldBounds(0, 1.1 * x, track.clientWidth);
80 var viewport = new Viewport(div);
81 var drawingContainer = new tracing.tracks.DrawingContainer(viewport);
[all …]
Dtrack.js30 decorate: function(viewport) { argument
32 if (viewport === undefined)
35 this.viewport_ = viewport;
40 get viewport() { getter in Track
100 var viewLWorld = this.viewport.xViewToWorld(0);
101 var viewRWorld = this.viewport.xViewToWorld(bounds.width * pixelRatio);
118 var viewPixWidthWorld = this.viewport.xViewVectorToWorld(1);
119 var loWX = this.viewport.xViewToWorld(loVX * pixelRatio);
120 var hiWX = this.viewport.xViewToWorld(hiVX * pixelRatio);
144 var vp = this.viewport;
Dcounter_track_test.js35 var viewport = new Viewport(testEl);
37 var drawingContainer = new tracing.tracks.DrawingContainer(viewport);
40 var track = new CounterTrack(viewport);
52 track.viewport.xSetWorldBounds(0, 10, track.clientWidth * pixelRatio);
79 var viewport = new Viewport(div);
81 var drawingContainer = new tracing.tracks.DrawingContainer(viewport);
85 var track = new CounterTrack(viewport);
90 track.viewport.xSetWorldBounds(0, 7.7, track.clientWidth);
/external/mesa3d/src/mesa/state_tracker/
Dst_atom_viewport.c72 st->state.viewport.scale[0] = half_width; in update_viewport()
73 st->state.viewport.scale[1] = half_height * yScale; in update_viewport()
74 st->state.viewport.scale[2] = half_depth; in update_viewport()
75 st->state.viewport.scale[3] = 1.0; in update_viewport()
77 st->state.viewport.translate[0] = half_width + x; in update_viewport()
78 st->state.viewport.translate[1] = (half_height + y) * yScale + yBias; in update_viewport()
79 st->state.viewport.translate[2] = half_depth + z; in update_viewport()
80 st->state.viewport.translate[3] = 0.0; in update_viewport()
82 cso_set_viewport(st->cso_context, &st->state.viewport); in update_viewport()
/external/chromium_org/third_party/mesa/src/src/mesa/state_tracker/
Dst_atom_viewport.c72 st->state.viewport.scale[0] = half_width; in update_viewport()
73 st->state.viewport.scale[1] = half_height * yScale; in update_viewport()
74 st->state.viewport.scale[2] = half_depth; in update_viewport()
75 st->state.viewport.scale[3] = 1.0; in update_viewport()
77 st->state.viewport.translate[0] = half_width + x; in update_viewport()
78 st->state.viewport.translate[1] = (half_height + y) * yScale + yBias; in update_viewport()
79 st->state.viewport.translate[2] = half_depth + z; in update_viewport()
80 st->state.viewport.translate[3] = 0.0; in update_viewport()
82 cso_set_viewport(st->cso_context, &st->state.viewport); in update_viewport()
/external/deqp/modules/glshared/
DglsScissorTests.cpp178 virtual void render (GLuint program, const IVec4& viewport) const = 0;
199 const RandomViewport viewport (m_renderCtx.getRenderTarget(), 256, 256, deStringHash(getName())); in iterate() local
200 const IVec4 relScissorArea (int(m_scissorArea.x()*viewport.width), in iterate()
201 int(m_scissorArea.y()*viewport.height), in iterate()
202 int(m_scissorArea.z()*viewport.width), in iterate()
203 int(m_scissorArea.w()*viewport.height)); in iterate()
204 const IVec4 absScissorArea (relScissorArea.x() + viewport.x, in iterate()
205 relScissorArea.y() + viewport.y, in iterate()
209 tcu::Surface refImage (viewport.width, viewport.height); in iterate()
210 tcu::Surface resImage (viewport.width, viewport.height); in iterate()
[all …]
/external/deqp/modules/gles3/functional/
Des3fTextureFormatTests.cpp157 …RandomViewport viewport (m_renderCtx.getRenderTarget(), m_width, m_height, deStringHash(getNam… in iterate() local
158 tcu::Surface renderedFrame (viewport.width, viewport.height); in iterate()
159 tcu::Surface referenceFrame (viewport.width, viewport.height); in iterate()
185 gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height); in iterate()
204 glu::readPixels(m_renderCtx, viewport.x, viewport.y, renderedFrame.getAccess()); in iterate()
347 …RandomViewport viewport (m_renderCtx.getRenderTarget(), m_width, m_height, deStringHash(getNam… in testFace() local
348 tcu::Surface renderedFrame (viewport.width, viewport.height); in testFace()
349 tcu::Surface referenceFrame (viewport.width, viewport.height); in testFace()
371 gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height); in testFace()
386 glu::readPixels(m_renderCtx, viewport.x, viewport.y, renderedFrame.getAccess()); in testFace()
[all …]
Des3fTextureSizeTests.cpp121 RandomViewport viewport (m_renderCtx.getRenderTarget(), 128, 128, deStringHash(getName())); in iterate() local
122 tcu::Surface renderedFrame (viewport.width, viewport.height); in iterate()
123 tcu::Surface referenceFrame (viewport.width, viewport.height); in iterate()
134 gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height); in iterate()
151 glu::readPixels(m_renderCtx, viewport.x, viewport.y, renderedFrame.getAccess()); in iterate()
264 …RandomViewport viewport (m_renderCtx.getRenderTarget(), 128, 128, deStringHash(getName())+(deUi… in testFace() local
265 tcu::Surface renderedFrame (viewport.width, viewport.height); in testFace()
266 tcu::Surface referenceFrame (viewport.width, viewport.height); in testFace()
280 gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height); in testFace()
293 glu::readPixels(m_renderCtx, viewport.x, viewport.y, renderedFrame.getAccess()); in testFace()
Des3fTextureMipmapTests.cpp304 …const RandomViewport viewport (m_renderCtx.getRenderTarget(), defViewportWidth, defViewportHeig… in iterate() local
311 tcu::Surface renderedFrame (viewport.width, viewport.height); in iterate()
316 int cellWidth = viewport.width / gridWidth; in iterate()
317 int cellHeight = viewport.height / gridHeight; in iterate()
320 if (viewport.width < defViewportWidth/2 || viewport.height < defViewportHeight/2) in iterate()
360 const int curW = gridX+1 == gridWidth ? (viewport.width-curX) : cellWidth; in iterate()
361 const int curH = gridY+1 == gridHeight ? (viewport.height-curY) : cellHeight; in iterate()
381 gl.viewport(viewport.x+curX, viewport.y+curY, curW, curH); in iterate()
387 glu::readPixels(m_renderCtx, viewport.x, viewport.y, renderedFrame.getAccess()); in iterate()
393 tcu::Surface referenceFrame (viewport.width, viewport.height); in iterate()
[all …]
/external/deqp/modules/gles3/accuracy/
Des3aTextureFilteringTests.cpp189 …RandomViewport viewport (m_renderCtx.getRenderTarget(), defViewportWidth, defViewportHeight, … in iterate() local
190 tcu::Surface renderedFrame (viewport.width, viewport.height); in iterate()
191 tcu::Surface referenceFrame (viewport.width, viewport.height); in iterate()
198 if (viewport.width < defViewportWidth || viewport.height < defViewportHeight) in iterate()
202 int leftWidth = viewport.width / 2; in iterate()
203 int rightWidth = viewport.width - leftWidth; in iterate()
204 int bottomHeight = viewport.height / 2; in iterate()
205 int topHeight = viewport.height - bottomHeight; in iterate()
228 gl.viewport(viewport.x, viewport.y, leftWidth, bottomHeight); in iterate()
239 gl.viewport(viewport.x+leftWidth, viewport.y, rightWidth, bottomHeight); in iterate()
[all …]
Des3aTextureMipmapTests.cpp253 …RandomViewport viewport (m_renderCtx.getRenderTarget(), defViewportWidth, defViewportHeight, … in iterate() local
260 tcu::Surface renderedFrame (viewport.width, viewport.height); in iterate()
263 tcu::Surface idealFrame (viewport.width, viewport.height); in iterate()
268 int cellWidth = viewport.width / gridWidth; in iterate()
269 int cellHeight = viewport.height / gridHeight; in iterate()
272 if (viewport.width < defViewportWidth || viewport.height < defViewportHeight) in iterate()
316 int curW = gridX+1 == gridWidth ? (viewport.width-curX) : cellWidth; in iterate()
317 int curH = gridY+1 == gridHeight ? (viewport.height-curY) : cellHeight; in iterate()
337 gl.viewport(viewport.x+curX, viewport.y+curY, curW, curH); in iterate()
350 glu::readPixels(m_renderCtx, viewport.x, viewport.y, renderedFrame.getAccess()); in iterate()
[all …]
/external/deqp/modules/gles2/accuracy/
Des2aTextureFilteringTests.cpp198 …RandomViewport viewport (m_renderCtx.getRenderTarget(), defViewportWidth, defViewportHeight, … in iterate() local
199 tcu::Surface renderedFrame (viewport.width, viewport.height); in iterate()
200 tcu::Surface referenceFrame (viewport.width, viewport.height); in iterate()
207 if (viewport.width < defViewportWidth || viewport.height < defViewportHeight) in iterate()
211 int leftWidth = viewport.width / 2; in iterate()
212 int rightWidth = viewport.width - leftWidth; in iterate()
213 int bottomHeight = viewport.height / 2; in iterate()
214 int topHeight = viewport.height - bottomHeight; in iterate()
237 gl.viewport(viewport.x, viewport.y, leftWidth, bottomHeight); in iterate()
248 gl.viewport(viewport.x+leftWidth, viewport.y, rightWidth, bottomHeight); in iterate()
[all …]
Des2aTextureMipmapTests.cpp261 …RandomViewport viewport (m_renderCtx.getRenderTarget(), defViewportWidth, defViewportHeight, … in iterate() local
267 tcu::Surface renderedFrame (viewport.width, viewport.height); in iterate()
270 tcu::Surface idealFrame (viewport.width, viewport.height); in iterate()
275 int cellWidth = viewport.width / gridWidth; in iterate()
276 int cellHeight = viewport.height / gridHeight; in iterate()
279 if (viewport.width < defViewportWidth || viewport.height < defViewportHeight) in iterate()
323 int curW = gridX+1 == gridWidth ? (viewport.width-curX) : cellWidth; in iterate()
324 int curH = gridY+1 == gridHeight ? (viewport.height-curY) : cellHeight; in iterate()
344 gl.viewport(viewport.x+curX, viewport.y+curY, curW, curH); in iterate()
357 glu::readPixels(m_renderCtx, viewport.x, viewport.y, renderedFrame.getAccess()); in iterate()
[all …]
/external/deqp/modules/gles31/functional/
Des31fTextureFormatTests.cpp176 …RandomViewport viewport (m_renderCtx.getRenderTarget(), m_size, m_size, deStringHash(getName())… in testLayerFace() local
177 tcu::Surface renderedFrame (viewport.width, viewport.height); in testLayerFace()
178 tcu::Surface referenceFrame (viewport.width, viewport.height); in testLayerFace()
197 gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height); in testLayerFace()
216 glu::readPixels(m_renderCtx, viewport.x, viewport.y, renderedFrame.getAccess()); in testLayerFace()
314 RandomViewport viewport (m_renderCtx.getRenderTarget(), m_width, 1, deStringHash(getName())); in iterate() local
315 tcu::Surface renderedFrame (viewport.width, viewport.height); in iterate()
316 tcu::Surface referenceFrame (viewport.width, viewport.height); in iterate()
334 gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height); in iterate()
347 glu::readPixels(m_renderCtx, viewport.x, viewport.y, renderedFrame.getAccess()); in iterate()
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/svga/
Dsvga_state_framebuffer.c168 const struct pipe_viewport_state *viewport = &svga->curr.viewport; in emit_viewport() local
184 float fx = viewport->scale[0] * -1.0 + viewport->translate[0]; in emit_viewport()
185 float fy = flip * viewport->scale[1] * -1.0 + viewport->translate[1]; in emit_viewport()
186 float fw = viewport->scale[0] * 2; in emit_viewport()
187 float fh = flip * viewport->scale[1] * 2; in emit_viewport()
219 fx = viewport->scale[0] * 1.0 + viewport->translate[0]; in emit_viewport()
334 range_min = viewport->scale[2] * -1.0 + viewport->translate[2]; in emit_viewport()
335 range_max = viewport->scale[2] * 1.0 + viewport->translate[2]; in emit_viewport()
417 if (memcmp(&rect, &svga->state.hw_clear.viewport, sizeof(rect)) != 0) { in emit_viewport()
422 memcpy(&svga->state.hw_clear.viewport, &rect, sizeof(rect)); in emit_viewport()
[all …]
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_state_framebuffer.c168 const struct pipe_viewport_state *viewport = &svga->curr.viewport; in emit_viewport() local
184 float fx = viewport->scale[0] * -1.0 + viewport->translate[0]; in emit_viewport()
185 float fy = flip * viewport->scale[1] * -1.0 + viewport->translate[1]; in emit_viewport()
186 float fw = viewport->scale[0] * 2; in emit_viewport()
187 float fh = flip * viewport->scale[1] * 2; in emit_viewport()
219 fx = viewport->scale[0] * 1.0 + viewport->translate[0]; in emit_viewport()
334 range_min = viewport->scale[2] * -1.0 + viewport->translate[2]; in emit_viewport()
335 range_max = viewport->scale[2] * 1.0 + viewport->translate[2]; in emit_viewport()
417 if (memcmp(&rect, &svga->state.hw_clear.viewport, sizeof(rect)) != 0) { in emit_viewport()
422 memcpy(&svga->state.hw_clear.viewport, &rect, sizeof(rect)); in emit_viewport()
[all …]
/external/mesa3d/src/mesa/drivers/dri/i965/
Dgen7_viewport_state.c62 vp->viewport.m00 = v[MAT_SX]; in gen7_upload_sf_clip_viewport()
63 vp->viewport.m11 = v[MAT_SY] * y_scale; in gen7_upload_sf_clip_viewport()
64 vp->viewport.m22 = v[MAT_SZ] * depth_scale; in gen7_upload_sf_clip_viewport()
65 vp->viewport.m30 = v[MAT_TX]; in gen7_upload_sf_clip_viewport()
66 vp->viewport.m31 = v[MAT_TY] * y_scale + y_bias; in gen7_upload_sf_clip_viewport()
67 vp->viewport.m32 = v[MAT_TZ] * depth_scale; in gen7_upload_sf_clip_viewport()
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/i965/
Dgen7_viewport_state.c62 vp->viewport.m00 = v[MAT_SX]; in gen7_upload_sf_clip_viewport()
63 vp->viewport.m11 = v[MAT_SY] * y_scale; in gen7_upload_sf_clip_viewport()
64 vp->viewport.m22 = v[MAT_SZ] * depth_scale; in gen7_upload_sf_clip_viewport()
65 vp->viewport.m30 = v[MAT_TX]; in gen7_upload_sf_clip_viewport()
66 vp->viewport.m31 = v[MAT_TY] * y_scale + y_bias; in gen7_upload_sf_clip_viewport()
67 vp->viewport.m32 = v[MAT_TZ] * depth_scale; in gen7_upload_sf_clip_viewport()

12345678910>>...20