Home
last modified time | relevance | path

Searched refs:center_x (Results 1 – 8 of 8) sorted by relevance

/external/chromium_org/native_client_sdk/src/examples/api/mouse_lock/
Dmouse_lock.cc248 int center_x = image->size().width() / 2; in DrawCenterSpot() local
252 pp::Point left_top(std::max(0, center_x - region_of_interest_radius), in DrawCenterSpot()
255 std::min(image->size().width(), center_x + region_of_interest_radius), in DrawCenterSpot()
259 if (GetDistance(x, y, center_x, center_y) < kCentralSpotRadius) { in DrawCenterSpot()
279 int center_x = image->size().width() / 2; in DrawNeedle() local
281 pp::Point vertex(mouse_movement_.x() + center_x, in DrawNeedle()
288 anchor_1.set_x(center_x); in DrawNeedle()
290 anchor_2.set_x(center_x); in DrawNeedle()
296 anchor_1.set_x(center_x + kCentralSpotRadius); in DrawNeedle()
298 anchor_2.set_x(center_x - kCentralSpotRadius); in DrawNeedle()
[all …]
/external/chromium_org/ppapi/examples/mouse_lock/
Dmouse_lock.cc157 int center_x = width / 2; in PaintImage() local
159 pp::Point vertex(mouse_movement_.x() + center_x, in PaintImage()
173 anchor_1.set_x(center_x); in PaintImage()
175 anchor_2.set_x(center_x); in PaintImage()
181 anchor_1.set_x(center_x + kCenteralSpotRadius); in PaintImage()
183 anchor_2.set_x(center_x - kCenteralSpotRadius); in PaintImage()
194 if (GetDistance(x, y, center_x, center_y) < kCenteralSpotRadius) { in PaintImage()
208 (direction == LEFT && x < center_x) || in PaintImage()
209 (direction == RIGHT && x > center_x); in PaintImage()
/external/skia/gm/
Dblurrect.cpp269 int center_x = (canvas_size.fWidth - (int)(r.width()))/2; in onDraw() local
276 r.offset( SkIntToScalar(center_x), SkIntToScalar(center_y) ); in onDraw()
285 center_x = (canvas_size.fWidth - mask.fBounds.width())/2; in onDraw()
288 canvas->drawBitmap(bm, SkIntToScalar(center_x), SkIntToScalar(center_y), NULL); in onDraw()
/external/chromium_org/third_party/skia/gm/
Dblurrect.cpp269 int center_x = (canvas_size.fWidth - (int)(r.width()))/2; in onDraw() local
276 r.offset( SkIntToScalar(center_x), SkIntToScalar(center_y) ); in onDraw()
285 center_x = (canvas_size.fWidth - mask.fBounds.width())/2; in onDraw()
288 canvas->drawBitmap(bm, SkIntToScalar(center_x), SkIntToScalar(center_y), NULL); in onDraw()
/external/chromium_org/ui/views/controls/tree/
Dtree_view.cc820 int center_x; in PaintExpandControl() local
822 center_x = node_bounds.right() - kArrowRegionSize + in PaintExpandControl()
825 center_x = node_bounds.x() + (kArrowRegionSize - 4) / 2; in PaintExpandControl()
834 canvas->FillRect(gfx::Rect(center_x + delta * (2 - i), in PaintExpandControl()
841 canvas->FillRect(gfx::Rect(center_x - (3 - i), center_y + i, in PaintExpandControl()
/external/qemu/android/skin/
Dargb.h358 int center_x = ((sx1 >> 16) + 1) < ((sx2-1) >> 16); in scale_05_to_10() local
382 if (center_x) { in scale_05_to_10()
402 if (center_x) { in scale_05_to_10()
423 if (center_x) { in scale_05_to_10()
/external/chromium_org/gpu/tools/compositor_model_bench/
Dshaders.cc440 float center_x = (left+right)/2 - g_current_tile_layer_width/2; in DrawTileQuad() local
442 TranslateInPlace(mv_transform, center_x, center_y, 0.0); in DrawTileQuad()
/external/chromium_org/chrome/browser/ui/views/tabs/
Dtab_strip.cc2181 int center_x; in GetDropBounds() local
2185 center_x = tab->x() - (kTabHorizontalOffset / 2); in GetDropBounds()
2187 center_x = tab->x() + (tab->width() / 2); in GetDropBounds()
2190 center_x = last_tab->x() + last_tab->width() + (kTabHorizontalOffset / 2); in GetDropBounds()
2194 center_x = GetMirroredXInView(center_x); in GetDropBounds()
2197 gfx::Point drop_loc(center_x - drop_indicator_width / 2, in GetDropBounds()