Home
last modified time | relevance | path

Searched refs:scales (Results 1 – 25 of 59) sorted by relevance

123

/external/chromium_org/ui/gfx/image/
Dimage_mac_unittest.mm19 // described by |width|, |height|, and |scales|.
22 // - |ns_image| has NSImageReps of |scales|.
29 const std::vector<float>& scales) {
33 [ns_image representations].count != scales.size()) {
37 for (size_t i = 0; i < scales.size(); ++i) {
38 float scale = scales[i];
111 std::vector<float> scales;
112 scales.push_back(1.0f);
113 scales.push_back(2.0f);
115 scales));
[all …]
Dimage_unittest_util.cc49 std::vector<float> scales; in Get1xAnd2xScales() local
50 scales.push_back(1.0f); in Get1xAnd2xScales()
51 scales.push_back(2.0f); in Get1xAnd2xScales()
52 return scales; in Get1xAnd2xScales()
150 const std::vector<float>& scales) { in ImageSkiaStructureMatches() argument
154 image_skia.image_reps().size() != scales.size()) { in ImageSkiaStructureMatches()
158 for (size_t i = 0; i < scales.size(); ++i) { in ImageSkiaStructureMatches()
160 image_skia.GetRepresentation(scales[i]); in ImageSkiaStructureMatches()
161 if (image_rep.is_null() || image_rep.scale() != scales[i]) in ImageSkiaStructureMatches()
164 if (image_rep.pixel_width() != static_cast<int>(width * scales[i]) || in ImageSkiaStructureMatches()
[all …]
Dimage_unittest.cc32 std::vector<float> scales; in ImageTest() local
33 scales.push_back(1.0f); in ImageTest()
35 scales.push_back(2.0f); in ImageTest()
37 gfx::ImageSkia::SetSupportedScales(scales); in ImageTest()
241 std::vector<float> scales; in TEST_F() local
242 scales.push_back(1.0f); in TEST_F()
243 scales.push_back(2.0f); in TEST_F()
250 scales)); in TEST_F()
279 std::vector<float> scales = gfx::ImageSkia::GetSupportedScales(); in TEST_F() local
280 EXPECT_EQ(scales.size(), 1U); in TEST_F()
[all …]
/external/skia/tests/
DMatrixTest.cpp123 SkScalar scales[2]; in test_matrix_min_max_scale() local
130 success = identity.getMinMaxScales(scales); in test_matrix_min_max_scale()
131 REPORTER_ASSERT(reporter, success && SK_Scalar1 == scales[0] && SK_Scalar1 == scales[1]); in test_matrix_min_max_scale()
137 success = scale.getMinMaxScales(scales); in test_matrix_min_max_scale()
138 … REPORTER_ASSERT(reporter, success && SK_Scalar1 * 2 == scales[0] && SK_Scalar1 * 4 == scales[1]); in test_matrix_min_max_scale()
145 success = rot90Scale.getMinMaxScales(scales); in test_matrix_min_max_scale()
146 … REPORTER_ASSERT(reporter, success && SK_Scalar1 / 4 == scales[0] && SK_Scalar1 / 2 == scales[1]); in test_matrix_min_max_scale()
152 success = rotate.getMinMaxScales(scales); in test_matrix_min_max_scale()
154 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(SK_Scalar1, scales[0], SK_ScalarNearlyZero)); in test_matrix_min_max_scale()
155 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(SK_Scalar1, scales[1], SK_ScalarNearlyZero)); in test_matrix_min_max_scale()
[all …]
/external/chromium_org/third_party/skia/tests/
DMatrixTest.cpp123 SkScalar scales[2]; in test_matrix_min_max_scale() local
130 success = identity.getMinMaxScales(scales); in test_matrix_min_max_scale()
131 REPORTER_ASSERT(reporter, success && SK_Scalar1 == scales[0] && SK_Scalar1 == scales[1]); in test_matrix_min_max_scale()
137 success = scale.getMinMaxScales(scales); in test_matrix_min_max_scale()
138 … REPORTER_ASSERT(reporter, success && SK_Scalar1 * 2 == scales[0] && SK_Scalar1 * 4 == scales[1]); in test_matrix_min_max_scale()
145 success = rot90Scale.getMinMaxScales(scales); in test_matrix_min_max_scale()
146 … REPORTER_ASSERT(reporter, success && SK_Scalar1 / 4 == scales[0] && SK_Scalar1 / 2 == scales[1]); in test_matrix_min_max_scale()
152 success = rotate.getMinMaxScales(scales); in test_matrix_min_max_scale()
154 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(SK_Scalar1, scales[0], SK_ScalarNearlyZero)); in test_matrix_min_max_scale()
155 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(SK_Scalar1, scales[1], SK_ScalarNearlyZero)); in test_matrix_min_max_scale()
[all …]
/external/chromium_org/tools/grit/grit/gather/
Dchrome_scaled_image.py105 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/skia/gm/
Dimagefiltersscaled.cpp129 SkVector scales[] = { in onDraw() local
142 for (size_t j = 0; j < SK_ARRAY_COUNT(scales); ++j) { in onDraw()
150 canvas->scale(scales[j].fX, scales[j].fY); in onDraw()
160 canvas->translate(r.width() * scales[j].fX + margin, 0); in onDraw()
163 canvas->translate(0, r.height() * scales[j].fY + margin); in onDraw()
Dblurrect.cpp91 SkScalar scales[] = { SK_Scalar1, 0.6f }; in onDraw() local
93 for (size_t s = 0; s < SK_ARRAY_COUNT(scales); ++s) { in onDraw()
105 canvas->scale(scales[s], scales[s]); in onDraw()
111 canvas->translate(0, SK_ARRAY_COUNT(procs) * r.height() * 4/3 * scales[s]); in onDraw()
114 canvas->translate(2 * r.width() * 4/3 * scales[s], 0); in onDraw()
/external/chromium_org/third_party/skia/gm/
Dimagefiltersscaled.cpp130 SkVector scales[] = { in onDraw() local
143 for (size_t j = 0; j < SK_ARRAY_COUNT(scales); ++j) { in onDraw()
151 canvas->scale(scales[j].fX, scales[j].fY); in onDraw()
161 canvas->translate(r.width() * scales[j].fX + margin, 0); in onDraw()
164 canvas->translate(0, r.height() * scales[j].fY + margin); in onDraw()
Ddftext.cpp45 SkScalar scales[] = { 2.0f*5.0f, 5.0f, 2.0f, 1.0f }; in onDraw() local
80 canvas->scale(scales[i], scales[i]); in onDraw()
83 y += paint.getFontMetrics(NULL)*scales[i]; in onDraw()
109 SkScalar scaleFactor = SkScalarInvert(scales[arraySize - i - 1]); in onDraw()
Dblurrect.cpp91 SkScalar scales[] = { SK_Scalar1, 0.6f }; in onDraw() local
93 for (size_t s = 0; s < SK_ARRAY_COUNT(scales); ++s) { in onDraw()
105 canvas->scale(scales[s], scales[s]); in onDraw()
111 canvas->translate(0, SK_ARRAY_COUNT(procs) * r.height() * 4/3 * scales[s]); in onDraw()
114 canvas->translate(2 * r.width() * 4/3 * scales[s], 0); in onDraw()
/external/chromium-trace/trace-viewer/src/cc/
Dlayer_tree_host_impl.js78 var scales = {};
81 scales[tileHistory.contentsScale] = true;
83 this.allContentsScales_ = base.dictionaryKeys(scales);
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/gallivm/
Dlp_bld_format_aos.c157 LLVMValueRef scales[4]; in lp_build_unpack_arith_rgba_aos() local
201 scales[i] = LLVMConstNull(LLVMFloatTypeInContext(gallivm->context)); in lp_build_unpack_arith_rgba_aos()
216 scales[i] = lp_build_const_float(gallivm, 1.0 / mask); in lp_build_unpack_arith_rgba_aos()
220 scales[i] = lp_build_const_float(gallivm, 1.0); in lp_build_unpack_arith_rgba_aos()
246 scaled = LLVMBuildFMul(builder, casted, LLVMConstVector(scales, 4), ""); in lp_build_unpack_arith_rgba_aos()
273 LLVMValueRef scales[4]; in lp_build_pack_rgba_aos() local
307 scales[i] = LLVMGetUndef(LLVMFloatTypeInContext(gallivm->context)); in lp_build_pack_rgba_aos()
318 scales[i] = lp_build_const_float(gallivm, mask); in lp_build_pack_rgba_aos()
322 scales[i] = lp_build_const_float(gallivm, 1.0); in lp_build_pack_rgba_aos()
329 scaled = LLVMBuildFMul(builder, unswizzled, LLVMConstVector(scales, 4), ""); in lp_build_pack_rgba_aos()
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_format_aos.c157 LLVMValueRef scales[4]; in lp_build_unpack_arith_rgba_aos() local
201 scales[i] = LLVMConstNull(LLVMFloatTypeInContext(gallivm->context)); in lp_build_unpack_arith_rgba_aos()
216 scales[i] = lp_build_const_float(gallivm, 1.0 / mask); in lp_build_unpack_arith_rgba_aos()
220 scales[i] = lp_build_const_float(gallivm, 1.0); in lp_build_unpack_arith_rgba_aos()
246 scaled = LLVMBuildFMul(builder, casted, LLVMConstVector(scales, 4), ""); in lp_build_unpack_arith_rgba_aos()
273 LLVMValueRef scales[4]; in lp_build_pack_rgba_aos() local
307 scales[i] = LLVMGetUndef(LLVMFloatTypeInContext(gallivm->context)); in lp_build_pack_rgba_aos()
318 scales[i] = lp_build_const_float(gallivm, mask); in lp_build_pack_rgba_aos()
322 scales[i] = lp_build_const_float(gallivm, 1.0); in lp_build_pack_rgba_aos()
329 scaled = LLVMBuildFMul(builder, unswizzled, LLVMConstVector(scales, 4), ""); in lp_build_pack_rgba_aos()
/external/chromium_org/ui/base/
Dlayout.cc55 std::vector<float> scales; in SetSupportedScaleFactors() local
59 scales.push_back(kScaleFactorScales[*it]); in SetSupportedScaleFactors()
61 gfx::ImageSkia::SetSupportedScales(scales); in SetSupportedScaleFactors()
/external/chromium_org/third_party/skia/src/gpu/effects/
DGrBicubicEffect.cpp202 SkScalar scales[2]; in ShouldUseBicubic() local
203 if (!matrix.getMinMaxScales(scales) || scales[0] < SK_Scalar1) { in ShouldUseBicubic()
210 if (scales[1] == SK_Scalar1) { in ShouldUseBicubic()
/external/skia/src/gpu/effects/
DGrBicubicEffect.cpp190 SkScalar scales[2]; in ShouldUseBicubic() local
191 if (!matrix.getMinMaxScales(scales) || scales[0] < SK_Scalar1) { in ShouldUseBicubic()
198 if (scales[1] == SK_Scalar1) { in ShouldUseBicubic()
/external/chromium_org/components/enhanced_bookmarks/
Dimage_store_ios_unittest.mm139 CGFloat scales[] = { 0.0, 1.0, 2.0 };
141 for (unsigned long i = 0; i < arraysize(scales); i++) {
142 gfx::Image src_image(GenerateRandomUIImage(image_size, scales[i]));
/external/chromium_org/ash/display/
Ddisplay_manager.cc228 std::vector<float> scales = GetScalesForDisplay(info); in GetNextUIScale() local
229 for (size_t i = 0; i < scales.size(); ++i) { in GetNextUIScale()
230 if (ScaleComparator(scales[i])(scale)) { in GetNextUIScale() local
231 if (up && i != scales.size() - 1) in GetNextUIScale()
232 return scales[i + 1]; in GetNextUIScale()
234 return scales[i - 1]; in GetNextUIScale()
235 return scales[i]; in GetNextUIScale()
457 std::vector<float> scales = GetScalesForDisplay(info); in SetDisplayUIScale() local
459 if (std::find_if(scales.begin(), scales.end(), comparator) == in SetDisplayUIScale()
460 scales.end()) { in SetDisplayUIScale()
/external/skia/experimental/Intersection/
DEdgeDemo.cpp43 int scales[circles]; in drawCircles() local
49 scales[c] = abs(10 - (step + c * 4) % 21); in drawCircles()
63 x *= 3 + scales[c] / 10.0f; in drawCircles()
64 y *= 3 + scales[c] / 10.0f; in drawCircles()
/external/chromium_org/third_party/skia/experimental/Intersection/
DEdgeDemo.cpp43 int scales[circles]; in drawCircles() local
49 scales[c] = abs(10 - (step + c * 4) % 21); in drawCircles()
63 x *= 3 + scales[c] / 10.0f; in drawCircles()
64 y *= 3 + scales[c] / 10.0f; in drawCircles()
/external/qemu/distrib/jpeg-6b/
Djddctmgr.c238 static const unsigned short scales[DCTSIZE2] = { in start_pass() local
253 ifmtbl[j] = (qtbl->quantval[i] * scales[i] + 2) >> 2; in start_pass()
/external/jpeg/
Djddctmgr.c278 static const unsigned short scales[DCTSIZE2] = { in start_pass() local
293 ifmtbl[j] = (qtbl->quantval[i] * scales[i] + 2) >> 2; in start_pass()
/external/llvm/docs/
DBlockFrequencyTerminology.rst104 multiplying these masses and loop scales together. A given block's frequency
106 containing loops' loop scales.
125 * loop scales are ignored.
/external/chromium_org/chrome/browser/favicon/
Dfavicon_service.cc70 std::vector<float> scales = favicon_base::GetFaviconScales(); in GetPixelSizesForFaviconScales() local
72 for (size_t i = 0; i < scales.size(); ++i) { in GetPixelSizesForFaviconScales()
73 sizes_in_pixel.push_back(std::ceil(size_in_dip * scales[i])); in GetPixelSizesForFaviconScales()

123