/external/chromium_org/ui/gfx/image/ |
H A D | image_skia.cc | 34 // The difference to fall back to the smaller scale factor rather than the 47 explicit Matcher(float scale) : scale_(scale) { argument 51 return rep.scale() == scale_; 75 ImageSkiaStorage(ImageSkiaSource* source, float scale) argument 78 ImageSkia::ImageSkiaReps::iterator it = FindRepresentation(scale, true); 115 // Add a new representation. This checks if the scale of the added image 119 if (image.scale() != 1.0f) { 124 DCHECK_EQ(1.0f, it->scale()); 134 // |scale| 145 FindRepresentation( float scale, bool fetch_new_image) const argument 270 ImageSkia(ImageSkiaSource* source, float scale) argument 367 RemoveRepresentation(float scale) argument [all...] |
H A D | image_skia_operations.cc | 28 gfx::Size DIPToPixelSize(gfx::Size dip_size, float scale) { argument 29 return ToCeiledSize(ScaleSize(dip_size, scale)); 32 gfx::Rect DIPToPixelBounds(gfx::Rect dip_bounds, float scale) { argument 33 return gfx::Rect(ToFlooredPoint(ScalePoint(dip_bounds.origin(), scale)), 34 DIPToPixelSize(dip_bounds.size(), scale)); 39 ImageSkiaRep GetErrorImageRep(float scale, const gfx::Size& pixel_size) { argument 43 return gfx::ImageSkiaRep(bitmap, scale); 61 virtual ImageSkiaRep GetImageForScale(float scale) OVERRIDE { 62 ImageSkiaRep first_rep = first_.GetRepresentation(scale); 63 ImageSkiaRep second_rep = second_.GetRepresentation(scale); [all...] |
/external/chromium_org/content/renderer/ |
H A D | disambiguation_popup_helper_unittest.cc | 40 float scale = DisambiguationPopupHelper::ComputeZoomAreaAndScaleFactor( local 45 EXPECT_LE(kDisambiguationPopupMinScale, scale); 47 gfx::Size scaled_size = ToCeiledSize(ScaleSize(zoom_rect.size(), scale)); 57 float scale = DisambiguationPopupHelper::ComputeZoomAreaAndScaleFactor( local 62 EXPECT_EQ(kDisambiguationPopupMaxScale, scale); 65 gfx::Size scaled_size = ToCeiledSize(ScaleSize(zoom_rect.size(), scale)); 76 float scale = DisambiguationPopupHelper::ComputeZoomAreaAndScaleFactor( local 81 EXPECT_EQ(kDisambiguationPopupMaxScale, scale); 84 gfx::Size scaled_size = ToCeiledSize(ScaleSize(zoom_rect.size(), scale));
|
/external/chromium_org/third_party/skia/src/effects/ |
H A D | SkTransparentShader.cpp | 51 unsigned scale = SkAlpha255To256(this->getPaintAlpha()); local 55 if (scale == 256) { 63 span[i] = SkAlphaMulQ(src[i], scale); 69 if (scale == 256) { 82 SkAlphaMul(r, scale), 83 SkAlphaMul(g, scale), 84 SkAlphaMul(b, scale)); 91 if (scale == 256) { 97 span[i] = SkPackARGB32(SkAlphaMul(src[i], scale), 0, 0, 0);
|
/external/skia/src/effects/ |
H A D | SkTransparentShader.cpp | 51 unsigned scale = SkAlpha255To256(this->getPaintAlpha()); local 55 if (scale == 256) { 63 span[i] = SkAlphaMulQ(src[i], scale); 69 if (scale == 256) { 82 SkAlphaMul(r, scale), 83 SkAlphaMul(g, scale), 84 SkAlphaMul(b, scale)); 91 if (scale == 256) { 97 span[i] = SkPackARGB32(SkAlphaMul(src[i], scale), 0, 0, 0);
|
/external/chromium_org/third_party/skia/gm/ |
H A D | bitmaprecttest.cpp | 30 // scaling the image down by the matrix' scale 42 SkScalar scale = 0.472560018f; local 44 canvas->scale(scale, scale); 48 canvas->scale(-1, 1);
|
H A D | filltypespersp.cpp | 40 SkScalar scale, const SkPaint& paint) { 50 canvas->scale(scale, scale); 56 void showFour(SkCanvas* canvas, SkScalar scale, bool aa) { argument 72 scale, paint); 74 scale, paint); 76 scale, paint); 78 scale, paint); 116 const SkScalar scale local 39 showPath(SkCanvas* canvas, int x, int y, SkPath::FillType ft, SkScalar scale, const SkPaint& paint) argument [all...] |
/external/chromium_org/third_party/webrtc/modules/audio_coding/codecs/ilbc/ |
H A D | cb_mem_energy.c | 37 int16_t scale, /* (i) The scaling of all energy values */ 52 energy = WebRtcSpl_DotProductWithScale( pp, pp, lTarget, scale); 62 WebRtcIlbcfix_CbMemEnergyCalc(energy, range, ppi, ppo, energyW16, energyShifts, scale, 0); 68 energy = WebRtcSpl_DotProductWithScale( pp, pp, lTarget, scale); 78 WebRtcIlbcfix_CbMemEnergyCalc(energy, range, ppi, ppo, energyW16, energyShifts, scale, base_size); 29 WebRtcIlbcfix_CbMemEnergy( int16_t range, int16_t *CB, int16_t *filteredCB, int16_t lMem, int16_t lTarget, int16_t *energyW16, int16_t *energyShifts, int16_t scale, int16_t base_size ) argument
|
H A D | cb_mem_energy_augmentation.c | 25 int16_t scale, /* (i) The scaling of all energy values */ 41 nrjRecursive = WebRtcSpl_DotProductWithScale( CBmemPtr-19, CBmemPtr-19, 15, scale); 48 WEBRTC_SPL_MUL_16_16_RSFT(*ppe, *ppe, scale); 53 energy += WebRtcSpl_DotProductWithScale(interpSamplesPtr, interpSamplesPtr, 4, scale); 58 energy += WebRtcSpl_DotProductWithScale(pp, pp, SUBL-lagcount, scale); 22 WebRtcIlbcfix_CbMemEnergyAugmentation( int16_t *interpSamples, int16_t *CBmem, int16_t scale, int16_t base_size, int16_t *energyW16, int16_t *energyShifts ) argument
|
/external/chromium_org/v8/test/mjsunit/regress/ |
H A D | regress-201590.js | 34 this.scale = initialScale; 39 var tileHeight = 64 * 0.25 * this.scale, 40 tileWidth = 128 * 0.25 * this.scale, 43 var xPos = ((xOffset) * gdpRatio) + this.ORIGIN.x * this.scale - 45 var yPos = ((yOffset) * gdpRatio) + this.ORIGIN.y * this.scale +
|
/external/skia/gm/ |
H A D | bitmaprecttest.cpp | 30 // scaling the image down by the matrix' scale 42 SkScalar scale = 0.472560018f; local 44 canvas->scale(scale, scale); 48 canvas->scale(-1, 1);
|
H A D | filltypespersp.cpp | 40 SkScalar scale, const SkPaint& paint) { 50 canvas->scale(scale, scale); 56 void showFour(SkCanvas* canvas, SkScalar scale, bool aa) { argument 72 scale, paint); 74 scale, paint); 76 scale, paint); 78 scale, paint); 116 const SkScalar scale local 39 showPath(SkCanvas* canvas, int x, int y, SkPath::FillType ft, SkScalar scale, const SkPaint& paint) argument [all...] |
/external/chromium_org/media/base/ |
H A D | channel_mixer.cc | 20 // Default scale factor for mixing two channels together. We use a different 109 void Mix(Channels input_ch, Channels output_ch, float scale); 111 float scale); 200 // When down mixing to mono from stereo, we need to be careful of full scale 203 float scale = local 206 Mix(LEFT, CENTER, scale); 207 Mix(RIGHT, CENTER, scale); 213 float scale = local 215 MixWithoutAccounting(CENTER, LEFT, scale); 216 Mix(CENTER, RIGHT, scale); 224 float scale = HasInputChannel(SIDE_LEFT) ? kEqualPowerScale : 1; local 247 float scale = HasInputChannel(BACK_LEFT) ? kEqualPowerScale : 1; local 346 float scale = matrix_[output_ch][input_ch]; local 360 float scale = matrix_[output_ch][input_ch]; local 389 Mix(Channels input_ch, Channels output_ch, float scale) argument 394 MixWithoutAccounting(Channels input_ch, Channels output_ch, float scale) argument [all...] |
/external/chromium_org/third_party/skia/src/core/ |
H A D | SkPoint.cpp | 74 void SkPoint::scale(SkScalar scale, SkPoint* dst) const { argument 76 dst->set(SkScalarMul(fX, scale), SkScalarMul(fY, scale)); 116 float mag, scale; local 119 scale = 1 / mag; 131 // have a non-zero value for scale (thanks to denormalized numbers). 132 scale = (float)(1 / magmag); 134 pt->set(x * scale, y * scale); 163 float scale; local 199 float scale; local [all...] |
/external/skia/src/core/ |
H A D | SkPoint.cpp | 73 void SkPoint::scale(SkScalar scale, SkPoint* dst) const { argument 75 dst->set(SkScalarMul(fX, scale), SkScalarMul(fY, scale)); 115 float mag, scale; local 118 scale = 1 / mag; 130 // have a non-zero value for scale (thanks to denormalized numbers). 131 scale = (float)(1 / magmag); 133 pt->set(x * scale, y * scale); 162 float scale; local 188 float scale; local [all...] |
/external/chromium_org/third_party/WebKit/Source/core/svg/graphics/ |
H A D | SVGImageForContainer.cpp | 32 scaledContainerSize.scale(m_zoom); 42 void SVGImageForContainer::drawPattern(GraphicsContext* context, const FloatRect& srcRect, const FloatSize& scale, argument 45 m_image->drawPatternForContainer(context, m_containerSize, m_zoom, srcRect, scale, phase, compositeOp, dstRect, blendMode, repeatSpacing);
|
/external/chromium_org/third_party/WebKit/Source/platform/graphics/ |
H A D | GradientGeneratedImage.cpp | 41 destContext->scale(destRect.width() / srcRect.width(), destRect.height() / srcRect.height()); 47 void GradientGeneratedImage::drawPattern(GraphicsContext* destContext, const FloatRect& srcRect, const FloatSize& scale, argument 52 int firstColumn = static_cast<int>(floorf((((destRect.x() - phase.x()) / scale.width()) - srcRect.x()) / srcRect.width())); 53 int firstRow = static_cast<int>(floorf((((destRect.y() - phase.y()) / scale.height()) - srcRect.y()) / srcRect.height())); 55 float dstX = (srcRect.x() + i * stepX) * scale.width() + phase.x(); 62 float dstMaxX = dstX + srcRect.width() * scale.width(); 74 visibleSrcRect.setX((tileDstRect.x() - phase.x()) / scale.width() - i * stepX); 75 visibleSrcRect.setWidth(tileDstRect.width() / scale.width()); 78 float dstY = (srcRect.y() + j * stepY) * scale.height() + phase.y(); 85 float dstMaxY = dstY + srcRect.height() * scale [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/ |
H A D | u_format_r11g11b10f.h | 111 const float scale = 1.0 / (1 << 20); local 112 f32.f = scale * mantissa; 119 float scale, decimal; local 122 scale = 1.0f / (1 << -exponent); 125 scale = (float) (1 << exponent); 128 f32.f = scale * decimal; 197 const float scale = 1.0 / (1 << 20); local 198 f32.f = scale * mantissa; 205 float scale, decimal; local 208 scale [all...] |
H A D | u_texture.c | 52 /* Compute sc = +/-scale and tc = +/-scale. 54 * though that can still sometimes happen with this scale factor... 56 const float scale = 0.9999f; local 57 const float sc = (2 * in_st[0] - 1) * scale; 58 const float tc = (2 * in_st[1] - 1) * scale;
|
/external/chromium_org/ui/base/cursor/ |
H A D | cursor_loader.h | 30 // Returns the current scale of the mouse cursor icon. 31 float scale() const { function in class:ui::CursorLoader 35 // Sets the scale of the mouse cursor icon. 36 void set_scale(const float scale) { argument 37 scale_ = scale; 65 // The current scale of the mouse cursor icon.
|
/external/chromium_org/ui/gfx/geometry/ |
H A D | insets.h | 25 Insets Scale(float scale) const { 26 return Scale(scale, scale);
|
/external/fonttools/Lib/fontTools/misc/ |
H A D | fixedTools.py | 28 scale = 1 << precisionBits 29 value /= scale 30 eps = .5 / scale
|
/external/fonttools/Tools/fontTools/misc/ |
H A D | fixedTools.py | 28 scale = 1 << precisionBits 29 value /= scale 30 eps = .5 / scale
|
/external/mesa3d/src/gallium/auxiliary/util/ |
H A D | u_format_r11g11b10f.h | 111 const float scale = 1.0 / (1 << 20); local 112 f32.f = scale * mantissa; 119 float scale, decimal; local 122 scale = 1.0f / (1 << -exponent); 125 scale = (float) (1 << exponent); 128 f32.f = scale * decimal; 197 const float scale = 1.0 / (1 << 20); local 198 f32.f = scale * mantissa; 205 float scale, decimal; local 208 scale [all...] |
H A D | u_texture.c | 52 /* Compute sc = +/-scale and tc = +/-scale. 54 * though that can still sometimes happen with this scale factor... 56 const float scale = 0.9999f; local 57 const float sc = (2 * in_st[0] - 1) * scale; 58 const float tc = (2 * in_st[1] - 1) * scale;
|