/external/chromium_org/ui/gfx/image/ |
image_unittest_util.cc | 49 std::vector<float> scales; local 50 scales.push_back(1.0f); 51 scales.push_back(2.0f); 52 return scales; 150 const std::vector<float>& scales) { 154 image_skia.image_reps().size() != scales.size()) { 158 for (size_t i = 0; i < scales.size(); ++i) { 160 image_skia.GetRepresentation(scales[i]); 161 if (image_rep.is_null() || image_rep.scale() != scales[i]) 164 if (image_rep.pixel_width() != static_cast<int>(width * scales[i]) | [all...] |
image_skia.h | 64 // Changes the value of GetSupportedScales() to |scales|. 65 static void SetSupportedScales(const std::vector<float>& scales);
|
image_unittest.cc | 32 std::vector<float> scales; local 33 scales.push_back(1.0f); 35 scales.push_back(2.0f); 37 gfx::ImageSkia::SetSupportedScales(scales); 241 std::vector<float> scales; local 242 scales.push_back(1.0f); 243 scales.push_back(2.0f); 250 scales)); 279 std::vector<float> scales = gfx::ImageSkia::GetSupportedScales(); local 280 EXPECT_EQ(scales.size(), 1U) 635 std::vector<float> scales; local [all...] |
/external/chromium_org/tools/grit/grit/gather/ |
chrome_scaled_image.py | 105 scales = [req_scale] 108 if try_low_res and 100 not in scales: 109 scales.append(100) 111 for scale in scales: 118 _MakeBraceGlob(map(str, scales)))
|
/external/chromium_org/ui/base/ |
layout.cc | 54 // Set ImageSkia's supported scales. 55 std::vector<float> scales; local 59 scales.push_back(kScaleFactorScales[*it]); 61 gfx::ImageSkia::SetSupportedScales(scales);
|
/external/chromium_org/third_party/skia/gm/ |
imagefiltersscaled.cpp | 130 SkVector scales[] = { local 143 for (size_t j = 0; j < SK_ARRAY_COUNT(scales); ++j) { 151 canvas->scale(scales[j].fX, scales[j].fY); 161 canvas->translate(r.width() * scales[j].fX + margin, 0); 164 canvas->translate(0, r.height() * scales[j].fY + margin);
|
dftext.cpp | 45 SkScalar scales[] = { 2.0f*5.0f, 5.0f, 2.0f, 1.0f }; local 80 canvas->scale(scales[i], scales[i]); 83 y += paint.getFontMetrics(NULL)*scales[i]; 109 SkScalar scaleFactor = SkScalarInvert(scales[arraySize - i - 1]);
|
blurrect.cpp | 91 SkScalar scales[] = { SK_Scalar1, 0.6f }; local 93 for (size_t s = 0; s < SK_ARRAY_COUNT(scales); ++s) { 105 canvas->scale(scales[s], scales[s]); 111 canvas->translate(0, SK_ARRAY_COUNT(procs) * r.height() * 4/3 * scales[s]); 114 canvas->translate(2 * r.width() * 4/3 * scales[s], 0);
|
/external/skia/gm/ |
imagefiltersscaled.cpp | 129 SkVector scales[] = { local 142 for (size_t j = 0; j < SK_ARRAY_COUNT(scales); ++j) { 150 canvas->scale(scales[j].fX, scales[j].fY); 160 canvas->translate(r.width() * scales[j].fX + margin, 0); 163 canvas->translate(0, r.height() * scales[j].fY + margin);
|
blurrect.cpp | 91 SkScalar scales[] = { SK_Scalar1, 0.6f }; local 93 for (size_t s = 0; s < SK_ARRAY_COUNT(scales); ++s) { 105 canvas->scale(scales[s], scales[s]); 111 canvas->translate(0, SK_ARRAY_COUNT(procs) * r.height() * 4/3 * scales[s]); 114 canvas->translate(2 * r.width() * 4/3 * scales[s], 0);
|
/external/chromium_org/third_party/skia/tests/ |
MatrixTest.cpp | 123 SkScalar scales[2]; local 130 success = identity.getMinMaxScales(scales); 131 REPORTER_ASSERT(reporter, success && SK_Scalar1 == scales[0] && SK_Scalar1 == scales[1]); 137 success = scale.getMinMaxScales(scales); 138 REPORTER_ASSERT(reporter, success && SK_Scalar1 * 2 == scales[0] && SK_Scalar1 * 4 == scales[1]); 145 success = rot90Scale.getMinMaxScales(scales); 146 REPORTER_ASSERT(reporter, success && SK_Scalar1 / 4 == scales[0] && SK_Scalar1 / 2 == scales[1]) 207 SkScalar scales[2]; local [all...] |
/external/skia/tests/ |
MatrixTest.cpp | 123 SkScalar scales[2]; local 130 success = identity.getMinMaxScales(scales); 131 REPORTER_ASSERT(reporter, success && SK_Scalar1 == scales[0] && SK_Scalar1 == scales[1]); 137 success = scale.getMinMaxScales(scales); 138 REPORTER_ASSERT(reporter, success && SK_Scalar1 * 2 == scales[0] && SK_Scalar1 * 4 == scales[1]); 145 success = rot90Scale.getMinMaxScales(scales); 146 REPORTER_ASSERT(reporter, success && SK_Scalar1 / 4 == scales[0] && SK_Scalar1 / 2 == scales[1]) 207 SkScalar scales[2]; local [all...] |
/external/chromium_org/third_party/skia/src/gpu/effects/ |
GrBicubicEffect.cpp | 202 SkScalar scales[2]; local 203 if (!matrix.getMinMaxScales(scales) || scales[0] < SK_Scalar1) { 209 // At this point if scales[1] == SK_Scalar1 then the matrix doesn't do any scaling. 210 if (scales[1] == SK_Scalar1) {
|
/external/skia/src/gpu/effects/ |
GrBicubicEffect.cpp | 190 SkScalar scales[2]; local 191 if (!matrix.getMinMaxScales(scales) || scales[0] < SK_Scalar1) { 197 // At this point if scales[1] == SK_Scalar1 then the matrix doesn't do any scaling. 198 if (scales[1] == SK_Scalar1) {
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/gallivm/ |
lp_bld_format_aos.c | 157 LLVMValueRef scales[4]; local 201 scales[i] = LLVMConstNull(LLVMFloatTypeInContext(gallivm->context)); 216 scales[i] = lp_build_const_float(gallivm, 1.0 / mask); 220 scales[i] = lp_build_const_float(gallivm, 1.0); 246 scaled = LLVMBuildFMul(builder, casted, LLVMConstVector(scales, 4), ""); 273 LLVMValueRef scales[4]; local 307 scales[i] = LLVMGetUndef(LLVMFloatTypeInContext(gallivm->context)); 318 scales[i] = lp_build_const_float(gallivm, mask); 322 scales[i] = lp_build_const_float(gallivm, 1.0); 329 scaled = LLVMBuildFMul(builder, unswizzled, LLVMConstVector(scales, 4), "") [all...] |
/external/mesa3d/src/gallium/auxiliary/gallivm/ |
lp_bld_format_aos.c | 157 LLVMValueRef scales[4]; local 201 scales[i] = LLVMConstNull(LLVMFloatTypeInContext(gallivm->context)); 216 scales[i] = lp_build_const_float(gallivm, 1.0 / mask); 220 scales[i] = lp_build_const_float(gallivm, 1.0); 246 scaled = LLVMBuildFMul(builder, casted, LLVMConstVector(scales, 4), ""); 273 LLVMValueRef scales[4]; local 307 scales[i] = LLVMGetUndef(LLVMFloatTypeInContext(gallivm->context)); 318 scales[i] = lp_build_const_float(gallivm, mask); 322 scales[i] = lp_build_const_float(gallivm, 1.0); 329 scaled = LLVMBuildFMul(builder, unswizzled, LLVMConstVector(scales, 4), "") [all...] |
/external/chromium_org/third_party/skia/experimental/Intersection/ |
EdgeDemo.cpp | 43 int scales[circles]; local 49 scales[c] = abs(10 - (step + c * 4) % 21); 63 x *= 3 + scales[c] / 10.0f; 64 y *= 3 + scales[c] / 10.0f;
|
/external/skia/experimental/Intersection/ |
EdgeDemo.cpp | 43 int scales[circles]; local 49 scales[c] = abs(10 - (step + c * 4) % 21); 63 x *= 3 + scales[c] / 10.0f; 64 y *= 3 + scales[c] / 10.0f;
|
/external/chromium_org/ash/display/ |
display_manager.cc | 62 // List of value UI Scale values. Scales for 2x are equivalent to 640, 228 std::vector<float> scales = GetScalesForDisplay(info); local 229 for (size_t i = 0; i < scales.size(); ++i) { 230 if (ScaleComparator(scales[i])(scale)) { 231 if (up && i != scales.size() - 1) 232 return scales[i + 1]; 234 return scales[i - 1]; 235 return scales[i]; 457 std::vector<float> scales = GetScalesForDisplay(info); 459 if (std::find_if(scales.begin(), scales.end(), comparator) = [all...] |
/external/jpeg/ |
jddctmgr.c | 278 static const unsigned short scales[DCTSIZE2] = { local 293 ifmtbl[j] = (qtbl->quantval[i] * scales[i] + 2) >> 2;
|
/external/libvorbis/lib/ |
Makefile.am | 16 registry.h scales.h window.h lookup.h lookup_data.h\
|
/external/qemu/distrib/jpeg-6b/ |
jddctmgr.c | 238 static const unsigned short scales[DCTSIZE2] = { local 253 ifmtbl[j] = (qtbl->quantval[i] * scales[i] + 2) >> 2;
|
/external/chromium_org/chrome/browser/favicon/ |
favicon_service.cc | 70 std::vector<float> scales = favicon_base::GetFaviconScales(); local 72 for (size_t i = 0; i < scales.size(); ++i) { 73 sizes_in_pixel.push_back(std::ceil(size_in_dip * scales[i])); 317 // Don't save if the scale isn't one of supported favicon scales.
|
/frameworks/base/core/java/android/view/ |
ScaleGestureDetector.java | 460 * @param scales true to enable quick scaling, false to disable 462 public void setQuickScaleEnabled(boolean scales) { 463 mQuickScaleEnabled = scales;
|
IWindowManager.aidl | 137 void setAnimationScales(in float[] scales);
|