Searched refs:bounds (Results 76 - 100 of 1705) sorted by relevance

1234567891011>>

/external/chromium_org/third_party/skia/gm/
H A Dlerpmode.cpp15 SkRect r, bounds = { 10, 10, 110, 110 }; local
17 r = bounds;
18 r.fRight = bounds.centerX();
21 canvas->saveLayer(&bounds, NULL);
24 r = bounds;
29 r = bounds;
/external/chromium_org/ui/gfx/
H A Ddisplay_unittest.cc14 EXPECT_EQ("0,0 100x100", display.bounds().ToString());
18 EXPECT_EQ("0,0 100x100", display.bounds().ToString());
22 EXPECT_EQ("10,20 50x50", display.bounds().ToString());
35 EXPECT_EQ("0,0 100x100", display.bounds().ToString());
40 EXPECT_EQ("0,0 70x70", display.bounds().ToString());
45 EXPECT_EQ("0,0 100x100", display.bounds().ToString());
/external/skia/gm/
H A Dlerpmode.cpp15 SkRect r, bounds = { 10, 10, 110, 110 }; local
17 r = bounds;
18 r.fRight = bounds.centerX();
21 canvas->saveLayer(&bounds, NULL);
24 r = bounds;
29 r = bounds;
/external/skia/src/effects/
H A DSkMatrixConvolutionImageFilter.cpp113 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { argument
120 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { argument
121 x = SkPin32(x, bounds.fLeft, bounds.fRight - 1);
122 y = SkPin32(y, bounds.fTop, bounds.fBottom - 1);
129 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { argument
130 x = (x - bounds.left()) % bounds.width() + bounds
144 fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) argument
271 SkIRect bounds; local
313 SkIRect bounds = src; local
333 Create(GrTexture* texture, const SkIRect& bounds, const SkISize& kernelSize, const SkScalar* kernel, SkScalar gain, SkScalar bias, const SkIPoint& kernelOffset, TileMode tileMode, bool convolveAlpha) argument
362 const SkIRect& bounds() const { return fBounds; } function in class:GrMatrixConvolutionEffect
444 appendTextureLookup(GrGLShaderBuilder* builder, const GrGLShaderBuilder::TextureSampler& sampler, const char* coord, const char* bounds, SkMatrixConvolutionImageFilter::TileMode tileMode) argument
490 const char* bounds = builder->getUniformCStr(fBoundsUni); local
565 const SkIRect& bounds = conv.bounds(); local
577 GrMatrixConvolutionEffect(GrTexture* texture, const SkIRect& bounds, const SkISize& kernelSize, const SkScalar* kernel, SkScalar gain, SkScalar bias, const SkIPoint& kernelOffset, TileMode tileMode, bool convolveAlpha) argument
646 SkIRect bounds = SkIRect::MakeXYWH(random->nextRangeU(0, textures[texIdx]->width()), local
[all...]
H A DSkOffsetImageFilter.cpp44 SkIRect bounds; local
45 if (!this->applyCropRect(ctx, src, srcOffset, &bounds)) {
49 SkAutoTUnref<SkBaseDevice> device(proxy->createDevice(bounds.width(), bounds.height()));
56 canvas.translate(SkIntToScalar(srcOffset.fX - bounds.fLeft),
57 SkIntToScalar(srcOffset.fY - bounds.fTop));
62 offset->fX = bounds.fLeft;
63 offset->fY = bounds.fTop;
84 SkIRect bounds = src; local
85 bounds
[all...]
/external/chromium_org/ash/wm/workspace/
H A Dmulti_window_resize_controller_unittest.cc40 const gfx::Rect& bounds) {
45 window->SetBounds(bounds);
109 generator.MoveMouseTo(w1->bounds().CenterPoint());
140 generator.MoveMouseTo(w1->bounds().CenterPoint());
153 gfx::Rect bounds(resize_widget()->GetWindowBoundsInScreen());
154 generator.MoveMouseTo(bounds.x() + 1, bounds.y() + 1);
161 generator.MoveMouseTo(bounds.x() + 10, bounds.y() + 10);
183 generator.MoveMouseTo(w1->bounds()
39 CreateTestWindow(aura::WindowDelegate* delegate, const gfx::Rect& bounds) argument
[all...]
H A Dworkspace_window_resizer.cc176 // Returns the bounds for a magnetic attach when resizing. |src| is the bounds
177 // of window being resized, |attach_to| the bounds of the window to attach to
274 // Grow the min/max bounds to include the starting size.
364 // |bounds| is in |GetTarget()->parent()|'s coordinates.
365 gfx::Rect bounds = CalculateBoundsForDrag(location_in_parent); local
366 AdjustBoundsForMainWindow(sticky_size, &bounds);
368 if (bounds != GetTarget()->bounds()) {
390 LayoutAttachedWindows(&bounds);
565 LayoutAttachedWindows( gfx::Rect* bounds) argument
705 MagneticallySnapToOtherWindows(gfx::Rect* bounds) argument
717 MagneticallySnapResizeToOtherWindows( gfx::Rect* bounds) argument
731 UpdateMagnetismWindow(const gfx::Rect& bounds, uint32 edges) argument
782 AdjustBoundsForMainWindow( int sticky_size, gfx::Rect* bounds) argument
909 UpdateSnapPhantomWindow(const gfx::Point& location, const gfx::Rect& bounds) argument
[all...]
H A Dmagnetism_matcher.cc53 MagnetismEdgeMatcher::MagnetismEdgeMatcher(const gfx::Rect& bounds, argument
55 : bounds_(bounds),
63 bool MagnetismEdgeMatcher::ShouldAttach(const gfx::Rect& bounds) { argument
68 GetPrimaryCoordinate(bounds, FlipEdge(edge_)))) {
69 const Range range(GetSecondaryRange(bounds));
78 // NOTE: this checks against the current bounds, we may want to allow some
80 const Range primary_range(GetPrimaryRange(bounds));
83 UpdateRanges(GetSecondaryRange(bounds));
123 MagnetismMatcher::MagnetismMatcher(const gfx::Rect& bounds, uint32 edges) argument
126 matchers_.push_back(new MagnetismEdgeMatcher(bounds, MAGNETISM_EDGE_TO
140 ShouldAttach(const gfx::Rect& bounds, MatchedEdge* edge) argument
161 AttachToSecondaryEdge( const gfx::Rect& bounds, MagnetismEdge edge, SecondaryMagnetismEdge* secondary_edge) const argument
[all...]
H A Dworkspace_window_resizer_unittest.cc82 gfx::Rect root_bounds(root->bounds());
187 void InitTouchResizeWindow(const gfx::Rect& bounds, int window_component) { argument
191 bounds));
225 EXPECT_EQ("0,300 500x300", window_->bounds().ToString());
226 EXPECT_EQ("500,200 100x200", window2_->bounds().ToString());
231 EXPECT_EQ("0,300 780x300", window_->bounds().ToString());
232 EXPECT_EQ("780,200 20x200", window2_->bounds().ToString());
236 EXPECT_EQ("0,300 500x300", window_->bounds().ToString());
237 EXPECT_EQ("500,200 100x200", window2_->bounds().ToString());
242 EXPECT_EQ("0,300 400x300", window_->bounds()
[all...]
/external/chromium_org/chrome/browser/ui/window_sizer/
H A Dwindow_sizer.h26 // window of the same type, the last saved bounds of the window from the
58 // Retrieve the persisted bounds of the window. Returns true if there was
62 virtual bool GetPersistentState(gfx::Rect* bounds,
66 // Retrieve the bounds of the most recent window of the matching type.
72 gfx::Rect* bounds,
82 const gfx::Rect& bounds) const = 0;
95 gfx::Rect* bounds,
101 // explicitly specify a particular window to base the bounds on, pass in a
119 // The edge of the screen to check for out-of-bounds.
126 bool GetLastActiveWindowBounds(gfx::Rect* bounds,
[all...]
/external/chromium_org/extensions/browser/api/system_display/
H A Ddisplay_info_provider.cc40 const gfx::Rect& bounds = display.bounds(); local
47 unit->bounds.left = bounds.x();
48 unit->bounds.top = bounds.y();
49 unit->bounds.width = bounds.width();
50 unit->bounds.height = bounds
[all...]
/external/chromium_org/third_party/skia/src/effects/
H A DSkPictureImageFilter.cpp84 SkIRect bounds; local
86 floatBounds.roundOut(&bounds);
87 if (!bounds.intersect(ctx.clipBounds())) {
91 if (bounds.isEmpty()) {
96 SkAutoTUnref<SkBaseDevice> device(proxy->createDevice(bounds.width(), bounds.height()));
104 canvas.translate(-SkIntToScalar(bounds.fLeft), -SkIntToScalar(bounds.fTop));
109 offset->fX = bounds.fLeft;
110 offset->fY = bounds
[all...]
H A DSkRectShaderImageFilter.cpp66 SkIRect bounds; local
67 if (!this->applyCropRect(ctx, source, SkIPoint::Make(0, 0), &bounds)) {
71 SkAutoTUnref<SkBaseDevice> device(proxy->createDevice(bounds.width(),
72 bounds.height()));
80 matrix.postTranslate(SkIntToScalar(-bounds.left()), SkIntToScalar(-bounds.top()));
83 SkRect rect = SkRect::MakeWH(SkIntToScalar(bounds.width()), SkIntToScalar(bounds.height()));
87 offset->fX = bounds.fLeft;
88 offset->fY = bounds
[all...]
H A DSkOffsetImageFilter.cpp44 SkIRect bounds; local
45 if (!this->applyCropRect(ctx, src, srcOffset, &bounds)) {
49 SkAutoTUnref<SkBaseDevice> device(proxy->createDevice(bounds.width(), bounds.height()));
56 canvas.translate(SkIntToScalar(srcOffset.fX - bounds.fLeft),
57 SkIntToScalar(srcOffset.fY - bounds.fTop));
62 offset->fX = bounds.fLeft;
63 offset->fY = bounds.fTop;
84 SkIRect bounds = src; local
85 bounds
[all...]
/external/chromium_org/ui/app_list/views/
H A Dapp_list_background.cc43 gfx::Rect bounds = view->GetContentsBounds(); local
49 path.addRoundRect(gfx::RectToSkRect(bounds), radius, radius);
55 int contents_top = bounds.y();
61 gfx::Rect search_box_rect(bounds.x(),
62 bounds.y(),
63 bounds.width(),
64 search_box_view_bounds.bottom() - bounds.y());
76 gfx::Rect contents_rect(bounds.x(),
78 bounds.width(),
79 bounds
[all...]
/external/chromium_org/ui/views/window/
H A Ddialog_client_view_unittest.cc69 return client_view_->bounds();
77 EXPECT_EQ(preferred_size.height(), contents_->bounds().height());
78 EXPECT_LE(preferred_size.width(), contents_->bounds().width());
79 EXPECT_EQ(contents_->bounds().origin(), client_bounds.origin());
80 EXPECT_EQ(contents_->bounds().right(), client_bounds.right());
169 EXPECT_EQ(GetContentsView()->bounds().bottom(),
170 client_view()->bounds().bottom());
177 EXPECT_LT(GetContentsView()->bounds().bottom(),
178 client_view()->bounds().bottom());
179 gfx::Size no_extra_view_size = client_view()->bounds()
[all...]
/external/chromium_org/chrome/browser/ui/views/frame/
H A Dbrowser_view_browsertest.cc48 void SetDevToolsBounds(const gfx::Rect& bounds) { argument
49 DevToolsWindowTesting::Get(devtools_)->SetInspectedPageBounds(bounds);
122 EXPECT_EQ(full_bounds, devtools_web_view()->bounds());
123 EXPECT_EQ(full_bounds, contents_web_view()->bounds());
128 EXPECT_EQ(full_bounds, devtools_web_view()->bounds());
132 EXPECT_EQ(full_bounds, devtools_web_view()->bounds());
133 EXPECT_EQ(small_bounds, contents_web_view()->bounds());
137 EXPECT_EQ(full_bounds, devtools_web_view()->bounds());
138 EXPECT_EQ(small_bounds, contents_web_view()->bounds());
142 EXPECT_EQ(full_bounds, devtools_web_view()->bounds());
[all...]
/external/chromium_org/ash/wm/
H A Dwindow_positioner_unittest.cc52 gfx::Rect bounds = widget->GetWindowBoundsInScreen(); local
57 EXPECT_EQ("300x300", bounds.size().ToString());
60 second_root_window).bounds().Contains(bounds));
64 // its restore bounds.
75 gfx::Rect bounds = widget1->GetWindowBoundsInScreen(); local
80 EXPECT_EQ("300x300", bounds.size().ToString());
84 bounds = widget1->GetWindowBoundsInScreen();
86 EXPECT_EQ("0,0 1400x853", bounds.ToString());
93 bounds
[all...]
H A Dwindow_util.cc104 void AdjustBoundsSmallerThan(const gfx::Size& max_size, gfx::Rect* bounds) { argument
105 bounds->set_width(std::min(bounds->width(), max_size.width()));
106 bounds->set_height(std::min(bounds->height(), max_size.height()));
110 gfx::Rect* bounds) {
112 visible_area, kMinimumOnScreenArea, kMinimumOnScreenArea, bounds);
118 gfx::Rect* bounds) {
119 AdjustBoundsSmallerThan(visible_area.size(), bounds);
124 if (bounds
109 AdjustBoundsToEnsureMinimumWindowVisibility(const gfx::Rect& visible_area, gfx::Rect* bounds) argument
115 AdjustBoundsToEnsureWindowVisibility(const gfx::Rect& visible_area, int min_width, int min_height, gfx::Rect* bounds) argument
[all...]
H A Dsystem_gesture_event_filter_unittest.cc241 gfx::Rect bounds(0, 0, 600, 600);
244 new ResizableWidgetDelegate, root_window, bounds);
263 toplevel->GetNativeWindow()->SetBounds(bounds);
270 toplevel->GetNativeWindow()->SetBounds(bounds);
332 gfx::Rect bounds(250, 150, 100, 100);
335 new MaxSizeWidgetDelegate, root_window, bounds);
341 gfx::Point(bounds.x() + 10, bounds.y() + 30),
342 gfx::Point(bounds.x() + 30, bounds
[all...]
/external/chromium_org/third_party/webrtc/modules/desktop_capture/mac/
H A Ddesktop_configuration.mm51 // relative to |bounds|.
52 void InvertRectYOrigin(const DesktopRect& bounds,
54 assert(bounds.top() == 0);
56 rect->left(), bounds.bottom() - rect->bottom(),
70 display_config.bounds = NSRectToDesktopRect(ns_bounds);
80 display_config.pixel_bounds = display_config.bounds;
120 InvertRectYOrigin(desktop_config.displays[0].bounds,
121 &display_config.bounds);
137 // Update the desktop bounds to account for this display, unless the current
141 desktop_config.bounds
[all...]
/external/chromium_org/chrome/browser/ui/panels/
H A Ddetached_panel_collection.cc47 // Update bounds to make sure the panel falls completely within the work
49 gfx::Rect bounds = panel->GetBounds(); local
50 if (panel->full_size() != bounds.size()) {
51 bounds.set_size(panel->full_size());
52 if (bounds.right() > work_area.right())
53 bounds.set_x(work_area.right() - bounds.width());
54 if (bounds.bottom() > work_area.bottom())
55 bounds.set_y(work_area.bottom() - bounds
136 gfx::Rect bounds = panel->GetBounds(); local
252 gfx::Rect bounds = panel->GetBounds(); local
[all...]
/external/chromium_org/ui/views/controls/
H A Dsingle_split_view_unittest.cc19 if (split.bounds().IsEmpty()) {
20 EXPECT_TRUE(leading->bounds().IsEmpty());
21 EXPECT_TRUE(trailing->bounds().IsEmpty());
25 EXPECT_FALSE(leading->bounds().IsEmpty());
26 EXPECT_FALSE(trailing->bounds().IsEmpty());
27 EXPECT_FALSE(leading->bounds().Intersects(trailing->bounds()));
30 EXPECT_EQ(leading->bounds().height(), split.bounds().height());
31 EXPECT_EQ(trailing->bounds()
[all...]
/external/chromium_org/skia/ext/
H A Dpixel_ref_utils.cc85 SkRect bounds = SkRect::MakeLTRB( variable
88 GatherPixelRefDevice::drawRect(draw, bounds, paint);
185 SkRect bounds;
186 paint.measureText(text, len, &bounds);
191 SkScalar h = bounds.fBottom - bounds.fTop;
193 bounds.fTop -= h / 2;
194 bounds.fBottom -= h / 2;
196 bounds.fBottom += metrics.fBottom;
197 bounds
258 SkRect bounds = SkRect::MakeLTRB( variable
[all...]
/external/chromium_org/ash/shell/
H A Dlock_view.cc54 gfx::Rect bounds = GetLocalBounds(); variable
56 bounds.set_y(bounds.bottom() - ps.height() - 5);
57 bounds.set_x((bounds.width() - ps.width()) / 2);
58 bounds.set_size(ps);
59 unlock_button_->SetBoundsRect(bounds);
92 gfx::Size root_window_size = Shell::GetPrimaryRootWindow()->bounds().size();
93 params.bounds = gfx::Rect((root_window_size.width() - ps.width()) / 2,

Completed in 6545 milliseconds

1234567891011>>