Searched refs:scale_ (Results 1 - 25 of 33) sorted by relevance

12

/external/chromium_org/ui/gfx/image/
H A Dimage_skia_rep.cc11 ImageSkiaRep::ImageSkiaRep() : scale_(0.0f) {
17 ImageSkiaRep::ImageSkiaRep(const gfx::Size& size, float scale) : scale_(scale) {
25 scale_(scale) {
37 DCHECK_EQ(0.0f, scale_);
38 if (scale_ == 0.0f)
39 scale_ = 1.0f;
H A Dimage_skia_rep.h50 float scale() const { return unscaled() ? 1.0f : scale_; }
52 bool unscaled() const { return scale_ == 0.0f; }
66 float scale_; member in class:gfx::ImageSkiaRep
H A Dimage_skia.cc47 explicit Matcher(float scale) : scale_(scale) {
51 return rep.scale() == scale_;
55 float scale_; member in class:gfx::internal::__anon16864::Matcher
/external/chromium_org/ui/base/cursor/
H A Dcursor_loader.h19 CursorLoader() : scale_(1.f), rotation_(gfx::Display::ROTATE_0) {}
32 return scale_;
37 scale_ = scale;
66 float scale_; member in class:ui::CursorLoader
/external/chromium-trace/trace-viewer/src/ui/
H A Dquad_stack_viewer.js25 this.scale_ = 0.25;
38 return this.scale_;
42 this.scale_ = newValue;
/external/chromium_org/ash/magnifier/
H A Dpartial_magnification_controller.h38 float GetScale() const { return scale_; }
81 float scale_; member in class:ash::PartialMagnificationController
H A Dmagnification_controller.cc75 virtual float GetScale() const OVERRIDE { return scale_; }
167 float scale_; member in class:ash::MagnificationControllerImpl
183 scale_(kNonMagnifiedScale),
206 (scale_ / scale) * (mouse_in_root.x() - origin_.x()),
208 (scale_ / scale) * (mouse_in_root.y() - origin_.y()));
249 scale == scale_) {
255 scale_ = scale;
261 transform.Scale(scale_, scale_);
313 RedrawDIP(new_origin, scale_, tru
[all...]
H A Dpartial_magnification_controller.cc43 scale_(kNonPartialMagnifiedScale),
58 scale_ = scale;
128 return scale_ >= kMinPartialMagnifiedScaleThreshold;
166 scale_,
/external/chromium_org/third_party/webrtc/modules/remote_bitrate_estimator/
H A Drate_statistics.h49 const float scale_; member in class:webrtc::RateStatistics
H A Drate_statistics.cc23 scale_(scale / (num_buckets_ - 1)) {
58 return static_cast<uint32_t>(accumulated_count_ * scale_ + 0.5f);
/external/chromium_org/ui/file_manager/gallery/js/image_editor/
H A Dviewport.js53 this.scale_ = 1;
291 return size / this.scale_;
299 return Math.round((x - this.imageBoundsOnScreen_.left) / this.scale_);
307 return Math.round((y - this.imageBoundsOnScreen_.top) / this.scale_);
327 return size * this.scale_;
335 return Math.round(this.imageBoundsOnScreen_.left + x * this.scale_);
343 return Math.round(this.imageBoundsOnScreen_.top + y * this.scale_);
392 this.scale_ = this.getFittingScaleForImageSize_(
399 zoomedWidht = ~~(this.imageBounds_.width * this.scale_ * this.zoom_);
400 zoomedHeight = ~~(this.imageBounds_.height * this.scale_ * thi
[all...]
/external/chromium_org/chrome/browser/ui/views/link_disambiguation/
H A Dlink_disambiguation_popup.cc40 const float scale_; member in class:LinkDisambiguationPopup::ZoomBubbleView
58 scale_(static_cast<float>(zoomed_skia_image->width()) /
89 (event->location().x() / scale_) + target_rect_.x(),
90 (event->location().y() / scale_) + target_rect_.y());
115 (event->location().x() / scale_) + target_rect_.x(),
116 (event->location().y() / scale_) + target_rect_.y());
119 (event->details().bounding_box().x() / scale_) + target_rect_.x(),
120 (event->details().bounding_box().y() / scale_) + target_rect_.y(),
121 event->details().bounding_box().width() / scale_,
122 event->details().bounding_box().height() / scale_));
[all...]
/external/chromium_org/chrome/browser/android/thumbnail/
H A Dthumbnail.cc43 scale_(scale),
59 gfx::ScaleSize(gfx::Size(bitmap.width(), bitmap.height()), 1.f / scale_);
71 scaled_content_size_ = gfx::ScaleSize(content_size, 1.f / scale_);
72 scaled_data_size_ = gfx::ScaleSize(data_size, 1.f / scale_);
H A Dthumbnail.h49 float scale() const { return scale_; }
77 float scale_; member in class:Thumbnail
/external/chromium_org/chrome/browser/resources/net_internals/
H A Dtimeline_graph_view.js89 // pixels represents a point in time |scale_| milliseconds after the
91 // |startTime_| + K * |scale_| to avoid jittering, and the rightmost
94 this.scale_ = DEFAULT_SCALE;
154 // than |scale_|.
155 return Math.floor(timeRange / this.scale_);
199 this.scale_ = DEFAULT_SCALE;
240 var oldScale = this.scale_;
241 this.scale_ *= ratio;
242 if (this.scale_ < TimelineGraphView.MIN_SCALE)
243 this.scale_
[all...]
/external/chromium_org/content/renderer/pepper/
H A Dppb_widget_impl.cc24 : Resource(ppapi::OBJECT_IS_IMPL, instance), scale_(1.0f) {
59 void PPB_Widget_Impl::SetScale(float scale) { scale_ = scale; }
H A Dppb_widget_impl.h52 float scale() const { return scale_; }
56 float scale_; member in class:content::PPB_Widget_Impl
H A Dpepper_graphics_2d_host.cc190 scale_(1.0f),
216 scale_ = 1.0f;
334 gfx::ToFlooredSize(gfx::ScaleSize(pixel_image_size, scale_));
378 if (scale_ != 1.0f && scale_ > 0.0f) {
379 canvas->scale(scale_, scale_);
380 pixel_origin.set(pixel_origin.x() * (1.0f / scale_),
381 pixel_origin.y() * (1.0f / scale_));
396 void PepperGraphics2DHost::SetScale(float scale) { scale_
[all...]
H A Dpepper_graphics_2d_host.h195 float scale_; member in class:content::PepperGraphics2DHost
/external/chromium_org/content/browser/resources/media/
H A Dtimeline_graph_view.js52 this.scale_ = 1000;
60 this.scale_ = scale;
67 // than this.scale_.
68 return Math.floor(timeRange / this.scale_);
189 var visibleStartTime = this.startTime_ + position * this.scale_;
204 width, height, fontHeight, visibleStartTime, this.scale_);
236 var x = Math.round((time - startTime) / this.scale_);
280 this.scale_ = 0;
321 return dataSeries.getValues(this.startTime_, this.scale_, this.width_);
334 this.scale_
[all...]
/external/chromium_org/ppapi/proxy/
H A Dgraphics_2d_resource.cc32 scale_(1.0f) {
107 scale_ = scale;
112 return scale_;
H A Dgraphics_2d_resource.h52 float scale_; member in class:ppapi::proxy::Graphics2DResource
/external/chromium_org/ash/touch/
H A Dtouch_hud_debug.cc253 scale_(1) {
263 if (scale_ == scale)
265 scale_ = scale;
267 transform.Scale(1. / scale_, 1. / scale_);
271 int scale() const { return scale_; }
326 int scale_; member in class:ash::TouchHudCanvas
/external/chromium_org/third_party/libwebp/utils/
H A Dquant_levels_dec.c52 int scale_; // normalization factor, in FIX bits precision member in struct:__anon13301
111 const uint32_t scale = p->scale_;
239 p->scale_ = (1 << (FIX + LFIX)) / (R * R); // normalization constant
/external/webp/src/utils/
H A Dquant_levels_dec.c52 int scale_; // normalization factor, in FIX bits precision member in struct:__anon33398
111 const uint32_t scale = p->scale_;
239 p->scale_ = (1 << (FIX + LFIX)) / (R * R); // normalization constant

Completed in 452 milliseconds

12