/external/skia/gm/ |
H A D | roundrects.cpp | 145 SkRect rect = SkRect::MakeLTRB(-20, -30, 20, 30); variable 147 circleRect.setRectXY(rect, 5, 5); 176 canvas->drawRect(rect, rectPaint); 189 SkRect rect = SkRect::MakeLTRB(-20, -60, 20, 60); variable 191 ellipseRect.setRectXY(rect, 5, 10); 201 canvas->drawRect(rect, rectPaint); 208 SkRect rect = SkRect::MakeLTRB(-80, -30, 80, 30); variable 210 ellipseRect.setRectXY(rect, 20, 5); 221 canvas->drawRect(rect, rectPaint); 228 SkRect rect variable 246 SkRect rect = SkRect::MakeLTRB(-80, -1, 80, 0); variable [all...] |
H A D | xfermodeimagefilter.cpp | 78 static void drawClippedPaint(SkCanvas* canvas, const SkRect& rect, const SkPaint& paint, argument 82 canvas->clipRect(rect); 204 SkImageFilter::CropRect rect(SkRect::Make(cropRect)); 207 mode, offsetBackground, offsetForeground, &rect));
|
/external/skia/include/core/ |
H A D | SkImageFilter.h | 43 explicit CropRect(const SkRect& rect, uint32_t flags = kHasAll_CropEdge) : fRect(rect), fFlags(flags) {} argument 45 const SkRect& rect() const { return fRect; } function in class:SkImageFilter::CropRect 159 * Returns whether any edges of the crop rect have been set. The crop 160 * rect is set at construction time, and determines which pixels from the 161 * input image will be processed. The size of the crop rect should be 162 * used as the size of the destination image. The origin of this rect 240 // Given the bounds of the destination rect to be filled in device 242 // which rect of the source image would be required (third parameter). 250 * Apply the transformed crop rect t [all...] |
/external/skia/samplecode/ |
H A D | SampleAARectModes.cpp | 56 SkRect rect = SkRect::MakeXYWH(W / 4 + offset, local 59 canvas->drawRect(rect, paint);
|
H A D | SampleArc.cpp | 64 static void draw_label(SkCanvas* canvas, const SkRect& rect, argument 76 canvas->drawText(str.c_str(), str.size(), rect.centerX(), 77 rect.fBottom + paint.getTextSize() * 5/4, paint);
|
H A D | SampleEmptyPath.cpp | 78 SkRect rect = SkRect::MakeWH(125*SK_Scalar1, 100*SK_Scalar1); local 87 canvas->translate(0, rect.height() + 50 * SK_Scalar1); 90 canvas->translate(rect.width() + 100 * SK_Scalar1, 0); 97 this->drawEmpty(canvas, color, rect, 105 canvas->drawRect(rect, rectPaint); 115 0, rect.height() + 15 * SK_Scalar1,
|
/external/skia/src/core/ |
H A D | SkBBoxHierarchyRecord.cpp | 77 void SkBBoxHierarchyRecord::onClipRect(const SkRect& rect, argument 81 this->INHERITED::onClipRect(rect, op, edgeStyle);
|
H A D | SkRRect.cpp | 13 void SkRRect::setRectXY(const SkRect& rect, SkScalar xRad, SkScalar yRad) { argument 14 if (rect.isEmpty()) { 21 this->setRect(rect); 25 if (rect.width() < xRad+xRad || rect.height() < yRad+yRad) { 26 SkScalar scale = SkMinScalar(SkScalarDiv(rect.width(), xRad + xRad), 27 SkScalarDiv(rect.height(), yRad + yRad)); 33 fRect = rect; 46 void SkRRect::setNinePatch(const SkRect& rect, SkScalar leftRad, SkScalar topRad, argument 48 if (rect 101 setRectRadii(const SkRect& rect, const SkVector radii[4]) argument [all...] |
H A D | SkRasterClip.cpp | 63 bool SkRasterClip::setRect(const SkIRect& rect) { argument 68 fIsRect = fBW.setRect(rect); 95 bool SkRasterClip::op(const SkIRect& rect, SkRegion::Op op) { argument 98 fIsBW ? fBW.op(rect, op) : fAA.op(rect, op); 156 // check that the rect really needs aa, or is it close enought to 157 // integer boundaries that we can just treat it as a BW rect?
|
/external/skia/src/effects/ |
H A D | Sk2DPathEffect.cpp | 38 const SkIRect& rect = iter.rect(); local 39 for (int y = rect.fTop; y < rect.fBottom; ++y) { 40 this->nextSpan(rect.fLeft, y, rect.width(), dst);
|
/external/skia/src/gpu/ |
H A D | GrSWMaskHelper.cpp | 43 * Draw a single rect element of the clip stack into the accumulation bitmap 45 void GrSWMaskHelper::draw(const SkRect& rect, SkRegion::Op op, argument 55 fDraw.drawRect(rect, paint); 215 const SkIRect& rect) { 224 SkRect dstRect = SkRect::MakeLTRB(SK_Scalar1 * rect.fLeft, 225 SK_Scalar1 * rect.fTop, 226 SK_Scalar1 * rect.fRight, 227 SK_Scalar1 * rect.fBottom); 235 maskMatrix.preTranslate(SkIntToScalar(-rect.fLeft), SkIntToScalar(-rect 213 DrawToTargetWithPathMask(GrTexture* texture, GrDrawTarget* target, const SkIRect& rect) argument [all...] |
/external/skia/tests/ |
H A D | BBoxHierarchyTest.cpp | 26 SkIRect rect; member in struct:DataRect 31 SkIRect rect = {0,0,0,0}; local 32 while (rect.isEmpty()) { 33 rect.fLeft = rand.nextS() % MAX_SIZE; 34 rect.fRight = rand.nextS() % MAX_SIZE; 35 rect.fTop = rand.nextS() % MAX_SIZE; 36 rect.fBottom = rand.nextS() % MAX_SIZE; 37 rect.sort(); 39 return rect; 44 out[i].rect [all...] |
H A D | CanvasStateTest.cpp | 24 SkRect rect = SkRect::MakeXYWH(SkIntToScalar(SPACER), SkIntToScalar(SPACER), local 53 // draw a rect within the layer's bounds and again outside the layer's bounds 54 canvas.saveLayerAlpha(&rect, layerAlpha[k], flags[k]); 71 tmpCanvas->drawRect(rect, bluePaint); 72 tmpCanvas->translate(0, rect.height() + SPACER); 73 tmpCanvas->drawRect(rect, bluePaint); 81 canvas.translate(0, 2*(rect.height() + SPACER));
|
H A D | DeviceLooperTest.cpp | 32 // very large devce, small rect 61 // test that a rect that doesn't intersect returns no loops 115 const SkIRect rect = SkIRect::MakeWH(w, h); local 128 SkDeviceLooper looper(bitmap, rc, rect, gRec[i].fAA);
|
H A D | RTreeTest.cpp | 21 SkIRect rect; member in struct:DataRect 26 SkIRect rect = {0,0,0,0}; local 27 while (rect.isEmpty()) { 28 rect.fLeft = rand.nextS() % 1000; 29 rect.fRight = rand.nextS() % 1000; 30 rect.fTop = rand.nextS() % 1000; 31 rect.fBottom = rand.nextS() % 1000; 32 rect.sort(); 34 return rect; 39 out[i].rect [all...] |
/external/chromium_org/ash/display/ |
H A D | screen_ash.cc | 161 const gfx::Rect& rect) { 162 gfx::Point point = rect.origin(); 165 return gfx::Rect(point, rect.size()); 170 const gfx::Rect& rect) { 171 gfx::Point point = rect.origin(); 174 return gfx::Rect(point, rect.size()); 160 ConvertRectToScreen(aura::Window* window, const gfx::Rect& rect) argument 169 ConvertRectFromScreen(aura::Window* window, const gfx::Rect& rect) argument
|
/external/chromium_org/ash/wm/maximize_mode/ |
H A D | maximize_mode_window_manager_unittest.cc | 160 gfx::Rect rect(80, 90, 100, 110); 165 scoped_ptr<aura::Window> w4(CreateWindow(ui::wm::WINDOW_TYPE_PANEL, rect)); 166 scoped_ptr<aura::Window> w5(CreateWindow(ui::wm::WINDOW_TYPE_POPUP, rect)); 167 scoped_ptr<aura::Window> w6(CreateWindow(ui::wm::WINDOW_TYPE_CONTROL, rect)); 168 scoped_ptr<aura::Window> w7(CreateWindow(ui::wm::WINDOW_TYPE_MENU, rect)); 169 scoped_ptr<aura::Window> w8(CreateWindow(ui::wm::WINDOW_TYPE_TOOLTIP, rect)); 194 EXPECT_EQ(rect.ToString(), w4->bounds().ToString()); 195 EXPECT_EQ(rect.ToString(), w5->bounds().ToString()); 196 EXPECT_EQ(rect.ToString(), w6->bounds().ToString()); 197 EXPECT_EQ(rect 886 gfx::Rect rect; local [all...] |
/external/chromium_org/ash/wm/overview/ |
H A D | scoped_transform_overview_window.cc | 168 const gfx::Rect& rect, 170 DCHECK(!rect.IsEmpty()); 173 std::min(static_cast<float>(bounds.width()) / rect.width(), 174 static_cast<float>(bounds.height()) / rect.height())); 175 return gfx::Rect(bounds.x() + 0.5 * (bounds.width() - scale * rect.width()), 176 bounds.y() + 0.5 * (bounds.height() - scale * rect.height()), 177 rect.width() * scale, 178 rect.height() * scale); 167 ShrinkRectToFitPreservingAspectRatio( const gfx::Rect& rect, const gfx::Rect& bounds) argument
|
/external/chromium_org/base/android/jni_generator/java/src/org/chromium/example/jni_generator/ |
H A D | SampleForTests.java | 207 private native void nativeSetNonPODDatatype(Rect rect); argument
|
/external/chromium_org/cc/base/ |
H A D | tiling_data_unittest.cc | 2167 // Small rect at origin rounds up to tile 0, 0. 2174 // Arbitrary internal rect. 2191 // Equal to tiling rect. 2195 // Containing, but larger than tiling rect. 2200 // Non-intersecting with tiling rect. 2220 // Small rect at origin rounds up to tile 0, 0. 2226 // Arbitrary internal rect. 2243 // Equal to tiling rect. 2247 // Containing, but larger than tiling rect. 2252 // Non-intersecting with tiling rect 2417 TestIterate(const TilingData& data, gfx::Rect rect, int expect_left, int expect_top, int expect_right, int expect_bottom, bool include_borders) argument 2487 TestIterateBorders(const TilingData& data, gfx::Rect rect, int expect_left, int expect_top, int expect_right, int expect_bottom) argument 2503 TestIterateNoBorders(const TilingData& data, gfx::Rect rect, int expect_left, int expect_top, int expect_right, int expect_bottom) argument 2519 TestIterateAll(const TilingData& data, gfx::Rect rect, int expect_left, int expect_top, int expect_right, int expect_bottom) argument [all...] |
/external/chromium_org/cc/resources/ |
H A D | picture_pile_base.cc | 112 // Find all tiles that contain any pixels outside the new rect. 232 gfx::Rect PicturePileBase::PadRect(const gfx::Rect& rect) { argument 233 gfx::Rect padded_rect = rect;
|
/external/chromium_org/cc/test/ |
H A D | layer_tree_pixel_test.cc | 121 const gfx::Rect& rect, SkColor color) { 124 layer->SetBounds(rect.size()); 125 layer->SetPosition(rect.origin()); 151 const gfx::Rect& rect, SkColor color, 153 scoped_refptr<SolidColorLayer> layer = CreateSolidColorLayer(rect, color); 155 gfx::Rect(0, 0, rect.width(), border_width), border_color); 160 rect.height() - border_width * 2), 163 CreateSolidColorLayer(gfx::Rect(rect.width() - border_width, 166 rect.height() - border_width * 2), 169 gfx::Rect(0, rect 120 CreateSolidColorLayer( const gfx::Rect& rect, SkColor color) argument 150 CreateSolidColorLayerWithBorder( const gfx::Rect& rect, SkColor color, int border_width, SkColor border_color) argument 178 CreateTextureLayer( const gfx::Rect& rect, const SkBitmap& bitmap) argument [all...] |
H A D | tiled_layer_test_common.cc | 51 void FakeLayerUpdater::SetRectToInvalidate(const gfx::Rect& rect, argument 53 rect_to_invalidate_ = rect; 88 void FakeTiledLayer::SetNeedsDisplayRect(const gfx::RectF& rect) { argument 89 last_needs_display_rect_ = rect; 90 TiledLayer::SetNeedsDisplayRect(rect);
|
/external/chromium_org/cc/trees/ |
H A D | damage_tracker.cc | 29 static inline void ExpandRectWithFilters(gfx::Rect* rect, argument 33 rect->Inset(-left, -top, -right, -bottom); 57 // This function computes the "damage rect" of a target surface, and updates 59 // rect is the region of the surface that may have changed and needs to be 63 // The surface's damage rect is computed as the union of all possible changes 85 // 4. combine all partial damage rects to get the full damage rect. 100 // anything. But this does not artificially inflate the damage rect. If the 119 // 3. After the damage rect is computed, the leftover not marked regions 139 // TODO(shawnsingh): can we clamp this damage to the surface's content rect? 187 // HUD damage rect visualizatio [all...] |
/external/chromium_org/chrome/browser/android/ |
H A D | chrome_web_contents_delegate_android.cc | 34 #include "ui/gfx/rect.h" 50 const gfx::RectF& rect) { 53 rect.x(), 54 rect.y(), 55 rect.right(), 56 rect.bottom())); 61 const gfx::Rect& rect) { 65 static_cast<int>(rect.x()), 66 static_cast<int>(rect.y()), 67 static_cast<int>(rect 48 CreateJavaRectF( JNIEnv* env, const gfx::RectF& rect) argument 59 CreateJavaRect( JNIEnv* env, const gfx::Rect& rect) argument [all...] |