Home
last modified time | relevance | path

Searched refs:new_width (Results 1 – 25 of 43) sorted by relevance

12

/external/chromium_org/ash/desktop_background/
Dwallpaper_resizer.cc39 const int new_width = target_size.width(); in Resize() local
42 if (orig_width > new_width || orig_height > new_height) { in Resize()
44 gfx::Size cropped_size = gfx::Size(std::min(new_width, orig_width), in Resize()
60 new_width, new_height); in Resize()
63 if (orig_width > new_width && orig_height > new_height) { in Resize()
66 double horizontal_ratio = static_cast<double>(new_width) / in Resize()
73 RoundPositive(static_cast<double>(new_width) / vertical_ratio), in Resize()
85 new_width, new_height); in Resize()
/external/chromium/chrome/browser/chromeos/
Dwm_overview_favicon.cc59 int new_width = kIconSize; in SetFavicon() local
64 new_width = kIconSize * aspect_ratio; in SetFavicon()
66 if (new_width && new_height) { in SetFavicon()
69 new_width, new_height); in SetFavicon()
/external/chromium_org/chrome/utility/importer/
Dfavicon_reencode.cc29 int new_width = decoded.width(); in ReencodeFavicon() local
31 gfx::CalculateFaviconTargetSize(&new_width, &new_height); in ReencodeFavicon()
33 decoded, skia::ImageOperations::RESIZE_LANCZOS3, new_width, new_height); in ReencodeFavicon()
/external/chromium/chrome/browser/importer/
Dimporter.cc40 int new_width = decoded.width(); in ReencodeFavicon() local
42 calc_favicon_target_size(&new_width, &new_height); in ReencodeFavicon()
44 decoded, skia::ImageOperations::RESIZE_LANCZOS3, new_width, new_height); in ReencodeFavicon()
/external/chromium_org/third_party/libjingle/source/talk/media/base/
Dvideoadapter.cc444 int new_width, new_height; in OnOutputFormatRequest() local
445 bool changed = AdaptToMinimumFormat(&new_width, &new_height); in OnOutputFormatRequest()
450 << " To: " << new_width << "x" << new_height; in OnOutputFormatRequest()
472 int new_width, new_height; in OnEncoderResolutionRequest() local
473 bool changed = AdaptToMinimumFormat(&new_width, &new_height); in OnEncoderResolutionRequest()
487 << " To: " << new_width << "x" << new_height; in OnEncoderResolutionRequest()
533 int new_width, new_height; in OnCpuResolutionRequest() local
534 bool changed = AdaptToMinimumFormat(&new_width, &new_height); in OnCpuResolutionRequest()
540 << " To: " << new_width << "x" << new_height; in OnCpuResolutionRequest()
603 bool CoordinatedVideoAdapter::AdaptToMinimumFormat(int* new_width, in AdaptToMinimumFormat() argument
[all …]
/external/chromium_org/native_client_sdk/src/examples/api/graphics_3d/
Dgraphics_3d.cc250 int32_t new_width = view.GetRect().width(); in DidChangeView() local
254 if (!InitGL(new_width, new_height)) { in DidChangeView()
265 int32_t result = context_.ResizeBuffers(new_width, new_height); in DidChangeView()
269 new_width, in DidChangeView()
275 width_ = new_width; in DidChangeView()
319 bool InitGL(int32_t new_width, int32_t new_height) { in InitGL() argument
328 PP_GRAPHICS3DATTRIB_WIDTH, new_width, in InitGL()
/external/chromium_org/native_client_sdk/src/gonacl_appengine/src/cube/
Dcube.cc253 int32_t new_width = view.GetRect().width(); in DidChangeView() local
257 if (!InitGL(new_width, new_height)) { in DidChangeView()
268 int32_t result = context_.ResizeBuffers(new_width, new_height); in DidChangeView()
272 new_width, in DidChangeView()
278 width_ = new_width; in DidChangeView()
322 bool InitGL(int32_t new_width, int32_t new_height) { in InitGL() argument
331 PP_GRAPHICS3DATTRIB_WIDTH, new_width, in InitGL()
/external/pixman/demos/
Dscale.c191 double new_width, new_height; in rescale() local
213 new_width = pixman_image_get_width (app->original) * fscale_x; in rescale()
218 pixman_f_transform_translate (&ftransform, NULL, - new_width / 2.0, - new_height / 2.0); in rescale()
223 pixman_f_transform_translate (&ftransform, NULL, new_width / 2.0, new_height / 2.0); in rescale()
250 app->scaled_width = ceil (new_width); in rescale()
254 get_widget (app, "drawing_area"), new_width + 0.5, new_height + 0.5); in rescale()
/external/chromium_org/ppapi/cpp/
Drect.cc112 int32_t new_width = width(); in AdjustToFit() local
114 AdjustAlongAxis(rect.x(), rect.width(), &new_x, &new_width); in AdjustToFit()
116 return Rect(new_x, new_y, new_width, new_height); in AdjustToFit()
/external/chromium_org/ui/gfx/
Drect_base_impl.h254 Type new_width = width(); in AdjustToFit() local
256 AdjustAlongAxis(rect.x(), rect.width(), &new_x, &new_width); in AdjustToFit()
258 SetRect(new_x, new_y, new_width, new_height); in AdjustToFit()
280 Type new_width = std::min(width(), size.width()); in ClampToCenteredSize() local
282 Type new_x = x() + (width() - new_width) / 2; in ClampToCenteredSize()
284 SetRect(new_x, new_y, new_width, new_height); in ClampToCenteredSize()
/external/chromium_org/chrome/browser/thumbnails/
Dsimple_thumbnail_crop.cc164 int new_width = static_cast<int>(source_size.height() * desired_aspect); in GetClippingRect() local
165 int x_offset = (source_size.width() - new_width) / 2; in GetClippingRect()
166 clipping_rect.SetRect(x_offset, 0, new_width, source_size.height()); in GetClippingRect()
/external/chromium/chrome/browser/ui/gtk/
Dbrowser_actions_toolbar_gtk.cc719 void BrowserActionsToolbarGtk::SetButtonHBoxWidth(int new_width) { in SetButtonHBoxWidth() argument
721 new_width = std::min(max_width, new_width); in SetButtonHBoxWidth()
722 new_width = std::max(new_width, 0); in SetButtonHBoxWidth()
723 gtk_widget_set_size_request(button_hbox_.get(), new_width, -1); in SetButtonHBoxWidth()
834 gint new_width = button_hbox_->allocation.width - distance_dragged; in OnGripperMotionNotify() local
835 SetButtonHBoxWidth(new_width); in OnGripperMotionNotify()
/external/linux-tools-perf/util/
Dsvghelper.c76 int new_width; in open_svg() local
91 new_width = (last_time - first_time) / 5000000; in open_svg()
93 if (new_width > svg_page_width) in open_svg()
94 svg_page_width = new_width; in open_svg()
/external/chromium_org/chrome/browser/ui/gtk/
Dbrowser_actions_toolbar_gtk.cc867 void BrowserActionsToolbarGtk::SetButtonHBoxWidth(int new_width) { in SetButtonHBoxWidth() argument
869 new_width = std::min(max_width, new_width); in SetButtonHBoxWidth()
870 new_width = std::max(new_width, 0); in SetButtonHBoxWidth()
871 gtk_widget_set_size_request(button_hbox_.get(), new_width, -1); in SetButtonHBoxWidth()
997 gint new_width = button_hbox_allocation.width - distance_dragged; in OnGripperMotionNotify() local
998 SetButtonHBoxWidth(new_width); in OnGripperMotionNotify()
/external/chromium_org/third_party/libjingle/source/talk/media/webrtc/
Dwebrtcvideoframe.cc348 int new_width = dw; in Reset() local
351 new_width = dh; in Reset()
355 size_t desired_size = SizeOf(new_width, new_height); in Reset()
360 Attach(video_buffer.get(), desired_size, new_width, new_height, pixel_width, in Reset()
/external/chromium/chrome/browser/chromeos/notifications/
Dnotification_panel.cc751 int new_width = pref_size.width(); in GetPreferredBounds() local
754 new_width += scroll_view_->GetScrollBarWidth(); in GetPreferredBounds()
756 return gfx::Rect(0, 0, new_width, new_height).Union(min_bounds_); in GetPreferredBounds()
763 int new_width = pref_size.width(); in GetStickyNewBounds() local
766 new_width += scroll_view_->GetScrollBarWidth(); in GetStickyNewBounds()
767 return gfx::Rect(0, 0, new_width, new_height).Union(min_bounds_); in GetStickyNewBounds()
/external/chromium_org/chrome/browser/ui/panels/
Dpanel.cc677 int new_width = size.width(); in ClampSize() local
678 if (new_width > max_size_.width()) in ClampSize()
679 new_width = max_size_.width(); in ClampSize()
680 if (new_width < min_size_.width()) in ClampSize()
681 new_width = min_size_.width(); in ClampSize()
691 return gfx::Size(new_width, new_height); in ClampSize()
/external/chromium/chrome/browser/tab_contents/
Dthumbnail_generator.cc416 S16CPU new_width = static_cast<S16CPU>(bitmap.height() * dest_aspect); in GetClippedBitmap() local
417 S16CPU x_offset = (bitmap.width() - new_width) / 2; in GetClippedBitmap()
418 src_rect.set(x_offset, 0, new_width + x_offset, bitmap.height()); in GetClippedBitmap()
/external/skia/src/effects/
DSkBlurMask.cpp83 int new_width = width + SkMax32(leftRadius, rightRadius) * 2; in boxBlur() local
85 int dst_y_stride = transpose ? 1 : new_width; in boxBlur()
221 return new_width; in boxBlur()
290 int new_width = width + diameter; in boxBlurInterp() local
292 int dst_y_stride = transpose ? 1 : new_width; in boxBlurInterp()
402 return new_width; in boxBlurInterp()
/external/chromium_org/third_party/skia/src/effects/
DSkBlurMask.cpp83 int new_width = width + SkMax32(leftRadius, rightRadius) * 2; in boxBlur() local
85 int dst_y_stride = transpose ? 1 : new_width; in boxBlur()
221 return new_width; in boxBlur()
290 int new_width = width + diameter; in boxBlurInterp() local
292 int dst_y_stride = transpose ? 1 : new_width; in boxBlurInterp()
402 return new_width; in boxBlurInterp()
/external/chromium_org/ui/views/controls/scrollbar/
Dbitmap_scroll_bar.cc220 int new_width = in GetTrackBounds() local
222 gfx::Rect track_bounds(prefsize.width(), 0, new_width, prefsize.height()); in GetTrackBounds()
/external/chromium_org/media/video/capture/mac/
Dvideo_capture_device_mac.mm281 int new_width = capture_format_.frame_size.width();
284 new_width = (new_width * aspect_numerator) / aspect_denominator;
288 capture_format_.frame_size.SetSize(new_width, new_height);
/external/chromium/chrome/browser/printing/cloud_print/
Dcloud_print_setup_flow.cc319 FundamentalValue new_width(done_size.width()); in ShowSetupDone() local
322 new_width, new_height); in ShowSetupDone()
/external/chromium_org/chrome/test/gpu/
Dgpu_feature_browsertest.cc566 int new_width = resize->GetKnownArgAsInt("new_width"); in IN_PROC_BROWSER_TEST_F() local
567 bool expect_create = (old_width/roundup != new_width/roundup || in IN_PROC_BROWSER_TEST_F()
588 old_width, new_width, num_creates, expected_creates); in IN_PROC_BROWSER_TEST_F()
/external/mesa3d/src/gallium/drivers/radeonsi/
Dr600_blit.c275 int new_height, new_width; in r600_compressed_to_blittable() local
290 new_width = util_format_get_nblocksx(tex->format, orig->width0); in r600_compressed_to_blittable()
293 tex->width0 = new_width; in r600_compressed_to_blittable()

12