/frameworks/base/services/java/com/android/server/display/ |
DisplayViewport.java | 30 // True if this viewport is valid. 53 public void copyFrom(DisplayViewport viewport) { 54 valid = viewport.valid; 55 displayId = viewport.displayId; 56 orientation = viewport.orientation; 57 logicalFrame.set(viewport.logicalFrame); 58 physicalFrame.set(viewport.physicalFrame); 59 deviceWidth = viewport.deviceWidth; 60 deviceHeight = viewport.deviceHeight;
|
DisplayDevice.java | 175 * Populates the specified viewport object with orientation, 178 public final void populateViewportLocked(DisplayViewport viewport) { 179 viewport.orientation = mCurrentOrientation; 182 viewport.logicalFrame.set(mCurrentLayerStackRect); 184 viewport.logicalFrame.setEmpty(); 188 viewport.physicalFrame.set(mCurrentDisplayRect); 190 viewport.physicalFrame.setEmpty(); 196 viewport.deviceWidth = isRotated ? info.height : info.width; 197 viewport.deviceHeight = isRotated ? info.width : info.height;
|
/external/skia/src/gpu/gl/ |
GrGLRenderTarget.cpp | 17 const GrGLIRect& viewport, 22 fViewport = viewport; 44 const GrGLIRect& viewport, 51 viewport.fWidth, viewport.fHeight, 61 // we assume this is true, TODO: get rid of viewport as a param. 62 GrAssert(viewport.fWidth == texture->width()); 63 GrAssert(viewport.fHeight == texture->height()); 65 this->init(desc, viewport, texID); 70 const GrGLIRect& viewport) [all...] |
GrGLRenderTarget.h | 39 const GrGLIRect& viewport, 46 const GrGLIRect& viewport); 92 // when we switch to this render target we want to set the viewport to 100 void init(const Desc& desc, const GrGLIRect& viewport, GrGLTexID* texID);
|
/external/webkit/Source/WebCore/platform/graphics/android/layers/ |
FixedPositioning.cpp | 36 // and the iframe's size as the viewport and pass to the children 49 SkRect viewport = getViewport(aViewport, parentIframeLayer); local 51 float w = viewport.width(); 52 float h = viewport.height(); 53 float dx = viewport.fLeft; 54 float dy = viewport.fTop; 117 SkRect viewport = getViewport(aViewport, parentIframeLayer); local 119 float w = viewport.width() - m_layer->getWidth(); 120 float h = viewport.height() - m_layer->getHeight(); 129 m_nbRepeatX = ceilf((viewport.width() / m_layer->getWidth()) + 1) [all...] |
IFrameLayerAndroid.cpp | 14 IFrameLayerAndroid* IFrameLayerAndroid::updatePosition(SkRect viewport,
|
IFrameLayerAndroid.h | 53 virtual IFrameLayerAndroid* updatePosition(SkRect viewport,
|
BaseLayerAndroid.cpp | 68 IFrameLayerAndroid* BaseLayerAndroid::updatePosition(SkRect viewport, 71 if (viewport.fRight > getWidth() || viewport.fBottom > getHeight()) { 72 // To handle the viewport expanding past the layer's size with HW accel, 73 // expand the size of the layer, so that tiles will cover the viewport. 74 setSize(std::max(viewport.fRight, getWidth()), 75 std::max(viewport.fBottom, getHeight())); 78 return LayerAndroid::updatePosition(viewport, parentIframeLayer); 89 // dynamically increase in size to cover the viewport, and we cache its draw 91 // by its m_clippingRect, only the viewport [all...] |
BaseLayerAndroid.h | 46 virtual IFrameLayerAndroid* updatePosition(SkRect viewport,
|
/external/webkit/Source/WebKit/gtk/webkit/ |
webkitviewportattributes.cpp | 34 * @short_description: Represents the viewport properties of a web page 35 * @see_also: #WebKitWebView::viewport-attributes-recompute-requested 36 * @see_also: #WebKitWebView::viewport-attributes-changed 38 * #WebKitViewportAttributes offers the viewport properties to user agents to 39 * control the viewport layout. It contains the viewport size, initial scale with limits, 40 * and information about whether a user is able to scale the contents in the viewport. 43 * The #WebKitWebView::viewport-attributes-changed signal will be emitted with #WebKitViewportAttributes 44 * when the viewport attributes are updated in the case of loading web pages contain 45 * the viewport properties and calling webkit_viewport_attributes_recompute [all...] |
/frameworks/native/opengl/libs/GLES_trace/src/ |
gltrace_context.cpp | 175 int viewport[4] = {}; local 176 hooks->gl.glGetIntegerv(GL_VIEWPORT, viewport); 177 unsigned fbContentsSize = viewport[2] * viewport[3] * 4; 193 hooks->gl.glReadPixels(viewport[0], viewport[1], viewport[2], viewport[3], 203 *fbwidth = viewport[2]; 204 *fbheight = viewport[3] [all...] |
/external/skia/tools/ |
bench_pictures_cfg_helper.py | 40 return BitmapConfig(viewport=[str(viewport_x), str(viewport_y)], **kwargs) 44 return GPUConfig(viewport=[str(viewport_x), str(viewport_y)], **kwargs) 48 return RTreeConfig(mode='simple', viewport=[str(viewport_x), str(viewport_y)], 54 viewport=[str(viewport_x), str(viewport_y)], **kwargs)
|
/frameworks/native/services/surfaceflinger/ |
DisplayDevice.cpp | 360 Rect viewport(newViewport); 375 if (viewport.isEmpty()) { 376 // viewport can be invalid if it has never been set, in that case 378 // it's also invalid to have an empty viewport, so we handle that 380 viewport = Rect(w, h); 382 // viewport is always specified in the logical orientation 384 swap(viewport.right, viewport.bottom); 391 float src_width = viewport.width(); 392 float src_height = viewport.height() [all...] |
/frameworks/native/libs/gui/ |
LayerState.cpp | 82 output.write(viewport); 93 input.read(viewport);
|
/external/webkit/Tools/EWebLauncher/ |
main.c | 148 } Viewport; 159 Viewport viewport; member in struct:_ELauncher 266 * This is en example function to adjust viewport via viewport tag's arguments. 267 * Application can invoke this function in order to adjust viewport tag when it is required. 275 ewk_view_fixed_layout_size_set(app->browser, app->viewport.w, app->viewport.h); 276 ewk_view_zoom_set(app->browser, app->viewport.initScale, 0, 0); 277 if (!ewk_view_zoom_range_set(app->browser, app->viewport.minScale, app->viewport.maxScale) [all...] |
/frameworks/base/libs/hwui/ |
Snapshot.h | 171 * Current viewport. 173 Rect viewport; member in class:android::uirenderer::Snapshot
|
/external/webkit/Source/WebCore/platform/graphics/android/rendering/ |
ShaderProgram.cpp | 498 //// viewport //// 511 // the GL viewport can save all the trouble of re-position from screenRect 707 IntRect viewport(m_visibleContentRect.fLeft - margin, m_visibleContentRect.fTop - margin, 710 viewport.intersect(rect); 711 return viewport; 948 int viewport[4]; local [all...] |
TransferQueue.cpp | 555 glGetIntegerv(GL_VIEWPORT, m_GLStateBeforeBlit.viewport); 579 glViewport(m_GLStateBeforeBlit.viewport[0], 580 m_GLStateBeforeBlit.viewport[1], 581 m_GLStateBeforeBlit.viewport[2], 582 m_GLStateBeforeBlit.viewport[3]);
|
/external/webkit/Source/WebCore/svg/ |
SVGSVGElement.idl | 44 readonly attribute SVGRect viewport;
|
/frameworks/native/opengl/libagl/ |
matrix.cpp | 75 c->transforms.dirty = transform_state_t::VIEWPORT | 132 // Validate the viewport transformation 133 if (dirty & transform_state_t::VIEWPORT) { 515 // premultiply it with the viewport transformation. In addition to 643 c->viewport.surfaceport.x = x; 644 c->viewport.surfaceport.y = y; 647 c->viewport.x, 648 c->viewport.y, 649 c->viewport.w, 650 c->viewport.h) [all...] |
/external/qemu/android/skin/ |
composer.h | 40 typedef void (*SkinPlateDrawFunc)( void* user, SkinRegion* region, SkinPos* apos, SkinViewport* viewport, int opaque );
|
/external/webkit/Source/WebCore/platform/graphics/ |
TiledBackingStore.h | 62 // Tiled are dropped outside the keep area, and created for cover area. The values a relative to the viewport size. 98 double tileDistance(const IntRect& viewport, const Tile::Coordinate&);
|
TiledBackingStore.cpp | 186 double TiledBackingStore::tileDistance(const IntRect& viewport, const Tile::Coordinate& tileCoordinate) 188 if (viewport.intersects(tileRectForCoordinate(tileCoordinate))) 191 IntPoint viewCenter = viewport.location() + IntSize(viewport.width() / 2, viewport.height() / 2); 227 // Search for the tile position closest to the viewport center that does not yet contain a tile.
|
/frameworks/native/include/private/gui/ |
LayerState.h | 119 Rect viewport; member in struct:android::DisplayState
|
/development/samples/training/InteractiveChart/src/com/example/android/interactivechart/ |
InteractiveLineGraphView.java | 97 // Viewport extremes. See mCurrentViewport for a discussion of the viewport. 104 * The current viewport. This rectangle represents the currently visible chart domain 653 * This is the active focal point in terms of the viewport. Could be a local 700 * Ensures that current viewport is inside the viewport extremes defined by {@link #AXIS_X_MIN}, 739 // Scrolling uses math based on the viewport (as opposed to math using pixels). 741 * Pixel offset is the offset in screen pixels, while viewport offset is the 742 * offset within the current viewport. For additional information on surface sizes 744 * additional information about the viewport, see the comments fo 1134 private RectF viewport; field in class:InteractiveLineGraphView.SavedState [all...] |