Home
last modified time | relevance | path

Searched refs:center_y (Results 1 – 7 of 7) sorted by relevance

/external/chromium_org/native_client_sdk/src/examples/api/mouse_lock/
Dmouse_lock.cc249 int center_y = image->size().height() / 2; in DrawCenterSpot() local
253 std::max(0, center_y - region_of_interest_radius)); in DrawCenterSpot()
256 std::min(image->size().height(), center_y + region_of_interest_radius)); in DrawCenterSpot()
259 if (GetDistance(x, y, center_x, center_y) < kCentralSpotRadius) { in DrawCenterSpot()
280 int center_y = image->size().height() / 2; in DrawNeedle() local
282 mouse_movement_.y() + center_y); in DrawNeedle()
289 anchor_1.set_y(center_y - kCentralSpotRadius); in DrawNeedle()
291 anchor_2.set_y(center_y + kCentralSpotRadius); in DrawNeedle()
297 anchor_1.set_y(center_y); in DrawNeedle()
299 anchor_2.set_y(center_y); in DrawNeedle()
[all …]
/external/chromium_org/ppapi/examples/mouse_lock/
Dmouse_lock.cc158 int center_y = height / 2; in PaintImage() local
160 mouse_movement_.y() + center_y); in PaintImage()
174 anchor_1.set_y(center_y - kCenteralSpotRadius); in PaintImage()
176 anchor_2.set_y(center_y + kCenteralSpotRadius); in PaintImage()
182 anchor_1.set_y(center_y); in PaintImage()
184 anchor_2.set_y(center_y); in PaintImage()
194 if (GetDistance(x, y, center_x, center_y) < kCenteralSpotRadius) { in PaintImage()
206 (direction == UP && y < center_y) || in PaintImage()
207 (direction == DOWN && y > center_y) || in PaintImage()
/external/skia/gm/
Dblurrect.cpp270 int center_y = (canvas_size.fHeight - (int)(r.height()))/2; in onDraw() local
276 r.offset( SkIntToScalar(center_x), SkIntToScalar(center_y) ); in onDraw()
286 center_y = (canvas_size.fHeight - mask.fBounds.height())/2; in onDraw()
288 canvas->drawBitmap(bm, SkIntToScalar(center_x), SkIntToScalar(center_y), NULL); in onDraw()
/external/chromium_org/third_party/skia/gm/
Dblurrect.cpp270 int center_y = (canvas_size.fHeight - (int)(r.height()))/2; in onDraw() local
276 r.offset( SkIntToScalar(center_x), SkIntToScalar(center_y) ); in onDraw()
286 center_y = (canvas_size.fHeight - mask.fBounds.height())/2; in onDraw()
288 canvas->drawBitmap(bm, SkIntToScalar(center_x), SkIntToScalar(center_y), NULL); in onDraw()
/external/chromium_org/gpu/tools/compositor_model_bench/
Dshaders.cc441 float center_y = (top+bottom)/2 - g_current_tile_layer_height/2; in DrawTileQuad() local
442 TranslateInPlace(mv_transform, center_x, center_y, 0.0); in DrawTileQuad()
/external/chromium_org/ui/views/controls/tree/
Dtree_view.cc827 int center_y = node_bounds.y() + node_bounds.height() / 2; in PaintExpandControl() local
835 center_y - (3 - i), 1, (3 - i) * 2 + 1), in PaintExpandControl()
839 center_y -= 2; in PaintExpandControl()
841 canvas->FillRect(gfx::Rect(center_x - (3 - i), center_y + i, in PaintExpandControl()
/external/qemu/android/skin/
Dargb.h359 int center_y = ((sy1 >> 16) + 1) < ((sy2-1) >> 16); in scale_05_to_10() local
394 if (center_y) { in scale_05_to_10()