/frameworks/av/libvideoeditor/lvpp/ |
PreviewRenderer.cpp | 108 Rect bounds(mWidth, mHeight); 113 bounds, &dst));
|
/frameworks/base/core/java/android/gesture/ |
Gesture.java | 235 final RectF bounds = new RectF(); local 236 path.computeBounds(bounds, true); 238 final float sx = (width - 2 * inset) / bounds.width(); 239 final float sy = (height - 2 * inset) / bounds.height(); 243 path.offset(-bounds.left + (width - bounds.width() * scale) / 2.0f, 244 -bounds.top + (height - bounds.height() * scale) / 2.0f);
|
/frameworks/base/libs/hwui/ |
PathTessellator.h | 93 static void expandBoundsForStroke(SkRect& bounds, const SkPaint* paint, bool forceExpand); 99 const mat4* transform, SkRect& bounds, VertexBuffer& vertexBuffer);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
ImageFilterBorder.java | 57 Rect bounds = new Rect(0, 0, (int) (w * scale1), (int) (h * scale1)); local 61 drawable.setBounds(bounds);
|
/external/skia/legacy/src/core/ |
SkCanvas.cpp | 50 // Helpers for computing fast bounds for quickReject tests 64 by the device's XY offset and bitmap-bounds. 350 done accumulating bounds for that draw. 524 /* Now we update our initial region to have the bounds of the new device, 525 and then intersect all of the clips in our stack with these bounds, 526 to ensure that we can't draw outside of the device's bounds (and trash 535 accurately take advantage of the new device bounds. 545 // compute our total bounds for all devices 546 SkIRect bounds; local 548 bounds.set(0, 0, device->width(), device->height()) 581 SkIRect bounds; local 1394 const SkRect& bounds = path.getBounds(); local 1421 SkRect bounds = { local 1449 const SkRect* bounds = &dst; local 1523 const SkRect* bounds = &dst; local [all...] |
SkRegion.cpp | 31 bool SkRegion::ComputeRunBounds(const SkRegion::RunType runs[], int count, SkIRect* bounds) 46 bounds->set(runs[2], runs[0], runs[3], runs[1]); 54 bounds->fTop = *runs++; 68 bounds->fLeft = left; 69 bounds->fRight = rite; 70 bounds->fBottom = bot; 322 void SkRegion::BuildRectRuns(const SkIRect& bounds, 325 runs[0] = bounds.fTop; 326 runs[1] = bounds.fBottom; 327 runs[2] = bounds.fLeft [all...] |
SkAAClip.cpp | 94 static RunHead* AllocRect(const SkIRect& bounds) { 95 SkASSERT(!bounds.isEmpty()); 96 int width = bounds.width(); 100 yoff->fY = bounds.height() - 1; 649 bool SkAAClip::setRect(const SkIRect& bounds) { 650 if (bounds.isEmpty()) { 658 r.set(bounds); 664 fBounds = bounds; 665 fRunHead = RunHead::AllocRect(bounds); 716 const SkIRect& bounds = rgn.getBounds() local [all...] |
/external/chromium/chrome/browser/ui/views/extensions/ |
browser_action_overflow_menu_controller.cc | 61 gfx::Rect bounds = menu_button_->bounds(); local 64 bounds.set_x(screen_loc.x()); 65 bounds.set_y(screen_loc.y()); 70 menu_->RunMenuForDropAt(window, bounds, anchor); 72 menu_->RunMenuAt(window, menu_button_, bounds, anchor, false);
|
/external/chromium/chrome/browser/ui/views/infobars/ |
before_translate_infobar.cc | 46 label_1_->bounds().right() + kButtonInLabelSpacing, 52 language_menu_button_->bounds().right() + kButtonInLabelSpacing, 57 accept_button_->SetBounds(label_2_->bounds().right() + kEndOfLabelSpacing, 63 accept_button_->bounds().right() + kButtonButtonSpacing, 70 deny_button_->bounds().right() + kButtonButtonSpacing, 78 deny_button_->bounds().right() + kButtonButtonSpacing,
|
/external/skia/legacy/src/ports/ |
SkHarfBuzzFont.cpp | 119 SkRect bounds; local 121 paint.getTextWidths(&glyph16, sizeof(glyph16), &width, &bounds); 123 metrics->x = SkScalarToHarfbuzzFixed(bounds.fLeft); 124 metrics->y = SkScalarToHarfbuzzFixed(bounds.fTop); 125 metrics->width = SkScalarToHarfbuzzFixed(bounds.width()); 126 metrics->height = SkScalarToHarfbuzzFixed(bounds.height());
|
/external/skia/src/ports/ |
SkHarfBuzzFont.cpp | 119 SkRect bounds; local 121 paint.getTextWidths(&glyph16, sizeof(glyph16), &width, &bounds); 123 metrics->x = SkScalarToHarfbuzzFixed(bounds.fLeft); 124 metrics->y = SkScalarToHarfbuzzFixed(bounds.fTop); 125 metrics->width = SkScalarToHarfbuzzFixed(bounds.width()); 126 metrics->height = SkScalarToHarfbuzzFixed(bounds.height());
|
/external/webkit/Source/WebCore/platform/graphics/ |
WidthIterator.cpp | 88 FloatRect bounds; local 197 bounds = fontData->boundsForGlyph(glyph); 199 m_firstGlyphOverflow = max<float>(0, -bounds.x()); 215 m_maxGlyphBoundingBoxY = max(m_maxGlyphBoundingBoxY, bounds.maxY()); 216 m_minGlyphBoundingBoxY = min(m_minGlyphBoundingBoxY, bounds.y()); 217 m_lastGlyphOverflow = max<float>(0, bounds.maxX() - width);
|
/external/webkit/Source/WebCore/platform/graphics/android/fonts/ |
HarfbuzzSkia.cpp | 160 SkRect bounds; local 161 paint.getTextWidths(&glyph16, sizeof(glyph16), &width, &bounds); 163 metrics->x = SkiaScalarToHarfbuzzFixed(bounds.fLeft); 164 metrics->y = SkiaScalarToHarfbuzzFixed(bounds.fTop); 165 metrics->width = SkiaScalarToHarfbuzzFixed(bounds.width()); 166 metrics->height = SkiaScalarToHarfbuzzFixed(bounds.height());
|
/external/webkit/Source/WebCore/platform/graphics/chromium/ |
HarfbuzzSkia.cpp | 177 SkRect bounds; local 178 paint.getTextWidths(&glyph16, sizeof(glyph16), &width, &bounds); 180 metrics->x = SkiaScalarToHarfbuzzFixed(bounds.fLeft); 181 metrics->y = SkiaScalarToHarfbuzzFixed(bounds.fTop); 182 metrics->width = SkiaScalarToHarfbuzzFixed(bounds.width()); 183 metrics->height = SkiaScalarToHarfbuzzFixed(bounds.height());
|
LayerRendererChromium.cpp | 355 if (layer->bounds().isEmpty()) 515 // bounds into clip space. 517 renderMatrix.scale3d(layer->bounds().width(), layer->bounds().height(), 1); 574 IntSize bounds = drawLayer->bounds(); local 579 float centerOffsetX = (0.5 - anchorPoint.x()) * bounds.width(); 580 float centerOffsetY = (0.5 - anchorPoint.y()) * bounds.height(); 593 FloatRect layerRect(-0.5 * drawLayer->bounds().width(), -0.5 * drawLayer->bounds().height(), drawLayer->bounds().width(), drawLayer->bounds().height()) [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
ClipDrawable.java | 188 protected void onBoundsChange(Rect bounds) { 189 mClipState.mDrawable.setBounds(bounds); 200 final Rect bounds = getBounds(); local 202 int w = bounds.width(); 207 int h = bounds.height(); 213 Gravity.apply(mClipState.mGravity, w, h, bounds, r, layoutDirection);
|
/external/webkit/Source/WebCore/rendering/ |
RenderThemeWin.cpp | 813 IntRect bounds = r; local 816 bounds.setHeight(trackWidth); 817 bounds.setY(r.y() + r.height() / 2 - trackWidth / 2); 819 bounds.setWidth(trackWidth); 820 bounds.setX(r.x() + r.width() / 2 - trackWidth / 2); 823 drawControl(i.context, o, sliderTheme(), getThemeData(o), bounds); 871 IntRect bounds = r; local 881 bounds.setHeight(min(parentBox.width(), min(parentBox.height(), bounds.height()))); 882 bounds.setWidth(bounds.height()) 922 IntRect bounds = r; local 956 IntRect bounds = r; local [all...] |
/external/webkit/Source/WebKit/mac/Carbon/ |
HIWebView.mm | 310 HIRect bounds; 329 HIViewGetBounds( inView->fViewRef, &bounds ); 337 OffsetRect( &drawRect, (SInt16)-bounds.origin.x, (SInt16)-bounds.origin.y ); 340 hiRect.origin.y = bounds.size.height - drawRect.bottom; // flip y 400 HIRect bounds; 402 HIViewGetBounds( view->fViewRef, &bounds ); 404 if ( CGRectContainsPoint( bounds, *where ) ) 426 HIRect bounds; 429 HIViewGetBounds( inView->fViewRef, &bounds ); [all...] |
/external/chromium/chrome/browser/ui/views/ |
find_bar_view.cc | 249 // toolbar background image. First, get the widget bounds. 250 gfx::Rect bounds = GetWidget()->GetWindowScreenBounds(); local 252 gfx::Point origin(bounds.origin()); 255 bounds.set_origin(origin); 266 origin.y(), 0, 0, bounds.width(), bounds.height()); 280 bounds.width() - kDialog_left->width() - kDialog_right->width(), 283 canvas->DrawBitmapInt(*kDialog_right, bounds.width() - kDialog_right->width(), 289 gfx::Point back_button_origin = find_previous_button_->bounds().origin(); 305 canvas->TileImageInt(*kDialog_left, bounds.x(), animation_offset() [all...] |
/frameworks/native/services/surfaceflinger/ |
Transform.cpp | 206 Rect Transform::transform(const Rect& bounds) const 209 vec2 lt( bounds.left, bounds.top ); 210 vec2 rt( bounds.right, bounds.top ); 211 vec2 lb( bounds.left, bounds.bottom ); 212 vec2 rb( bounds.right, bounds.bottom ); 238 out.set(transform(reg.bounds())); [all...] |
/external/skia/src/gpu/ |
GrAAHairLinePathRenderer.cpp | 43 // Each quadratic is rendered as a five sided polygon. This poly bounds 208 GrRect bounds; local 222 bounds.setBounds(devPts, 2); 223 bounds.outset(SK_Scalar1, SK_Scalar1); 224 bounds.roundOut(&ibounds); 233 bounds.setBounds(devPts, 3); 234 bounds.outset(SK_Scalar1, SK_Scalar1); 235 bounds.roundOut(&ibounds); 259 bounds.setBounds(devPts, 4); 260 bounds.outset(SK_Scalar1, SK_Scalar1) [all...] |
/external/skia/src/core/ |
SkAAClip.cpp | 94 static RunHead* AllocRect(const SkIRect& bounds) { 95 SkASSERT(!bounds.isEmpty()); 96 int width = bounds.width(); 100 yoff->fY = bounds.height() - 1; 663 bool SkAAClip::setRect(const SkIRect& bounds) { 664 if (bounds.isEmpty()) { 672 r.set(bounds); 678 fBounds = bounds; 679 fRunHead = RunHead::AllocRect(bounds); 730 const SkIRect& bounds = rgn.getBounds() local 1539 const SkIRect& bounds = builder.getBounds(); local 1622 SkIRect bounds; local [all...] |
/frameworks/base/core/java/android/widget/ |
TabWidget.java | 342 final Rect bounds = mBounds; local 343 bounds.left = selectedChild.getLeft(); 344 bounds.right = selectedChild.getRight(); 346 leftStrip.setBounds(Math.min(0, bounds.left - leftStrip.getIntrinsicWidth()), 347 myHeight - leftStrip.getIntrinsicHeight(), bounds.left, myHeight); 348 rightStrip.setBounds(bounds.right, myHeight - rightStrip.getIntrinsicHeight(), 349 Math.max(getWidth(), bounds.right + rightStrip.getIntrinsicWidth()), myHeight);
|
/frameworks/base/core/jni/ |
android_view_GLES20Canvas.cpp | 193 android::uirenderer::Rect bounds; local 194 status_t status = renderer->invokeFunctors(bounds); 197 int(bounds.left), int(bounds.top), int(bounds.right), int(bounds.bottom)); 250 const android::uirenderer::Rect& bounds(renderer->getClipBounds()); 251 return renderer->saveLayer(bounds.left, bounds.top, bounds.right, bounds.bottom 734 android::uirenderer::Rect bounds; local [all...] |
/external/chromium/chrome/browser/ui/gtk/tabs/ |
tab_strip_gtk.cc | 75 // we pick up the normal bounds by connecting to the configure-event signal. 427 gfx::Rect bounds(Round(new_x), start_tab_a_bounds_.y(), tab_a_->width(), 429 tabstrip_->SetTabBounds(tab_a_, bounds); 435 bounds = gfx::Rect(Round(new_x), start_tab_b_bounds_.y(), tab_b_->width(), 437 tabstrip_->SetTabBounds(tab_b_, bounds); 449 // ...and their bounds. 673 // Initial bounds of tab_. 676 // Target bounds. 803 const gfx::Rect& bounds = tab_data_.at(i).ideal_bounds; local 807 SetTabBounds(tab, bounds); 1539 gfx::Rect bounds = tab->GetNonMirroredBounds(tabstrip_.get()); local 1547 gfx::Rect bounds = last_tab->GetNonMirroredBounds(tabstrip_.get()); local 1577 gfx::Rect bounds = tab->GetNonMirroredBounds(tabstrip_.get()); local 1926 gfx::Rect bounds = gfx::Rect(allocation->x, allocation->y, local [all...] |