/third_party/skia/gm/ |
D | drawatlascolor.cpp | 33 const int kBlockSize = atlasSize/2; in make_atlas() local 44 SkIntToScalar(kBlockSize), SkIntToScalar(kBlockSize)); in make_atlas() 48 r = SkRect::MakeXYWH(SkIntToScalar(kBlockSize), 0, in make_atlas() 49 SkIntToScalar(kBlockSize), SkIntToScalar(kBlockSize)); in make_atlas() 53 r = SkRect::MakeXYWH(0, SkIntToScalar(kBlockSize), in make_atlas() 54 SkIntToScalar(kBlockSize), SkIntToScalar(kBlockSize)); in make_atlas() 58 r = SkRect::MakeXYWH(SkIntToScalar(kBlockSize), SkIntToScalar(kBlockSize), in make_atlas() 59 SkIntToScalar(kBlockSize), SkIntToScalar(kBlockSize)); in make_atlas()
|
D | bleed.cpp | 149 SkIntToScalar(kBlockSize), SkIntToScalar(kBlockSize)); in drawCase1() 162 SkIntToScalar(kBlockSize), SkIntToScalar(kBlockSize)); in drawCase2() 179 SkIntToScalar(kBlockSize), SkIntToScalar(kBlockSize)); in drawCase3() 192 SkIntToScalar(kBlockSize), SkIntToScalar(kBlockSize)); in drawCase4() 207 SkIntToScalar(kBlockSize), SkIntToScalar(kBlockSize)); in drawCase5() 231 constexpr SkScalar kBottom = SkIntToScalar(kRow4Y + kBlockSize + kBlockSpacing); in onDraw() 286 SkScalar x = kBlockSize + std::max({innerCorners[0].fX, innerCorners[1].fX, in onDraw() 300 inline static constexpr int kBlockSize = 70; member in SrcRectConstraintGM 304 inline static constexpr int kCol1X = 2*kBlockSpacing + kBlockSize; 305 inline static constexpr int kCol2X = 3*kBlockSpacing + 2*kBlockSize; [all …]
|
/third_party/flutter/skia/gm/ |
D | drawatlascolor.cpp | 33 const int kBlockSize = atlasSize/2; in make_atlas() local 44 SkIntToScalar(kBlockSize), SkIntToScalar(kBlockSize)); in make_atlas() 48 r = SkRect::MakeXYWH(SkIntToScalar(kBlockSize), 0, in make_atlas() 49 SkIntToScalar(kBlockSize), SkIntToScalar(kBlockSize)); in make_atlas() 53 r = SkRect::MakeXYWH(0, SkIntToScalar(kBlockSize), in make_atlas() 54 SkIntToScalar(kBlockSize), SkIntToScalar(kBlockSize)); in make_atlas() 58 r = SkRect::MakeXYWH(SkIntToScalar(kBlockSize), SkIntToScalar(kBlockSize), in make_atlas() 59 SkIntToScalar(kBlockSize), SkIntToScalar(kBlockSize)); in make_atlas()
|
D | bleed.cpp | 240 SkIntToScalar(kBlockSize), SkIntToScalar(kBlockSize)); in drawCase1() 256 SkIntToScalar(kBlockSize), SkIntToScalar(kBlockSize)); in drawCase2() 275 SkIntToScalar(kBlockSize), SkIntToScalar(kBlockSize)); in drawCase3() 291 SkIntToScalar(kBlockSize), SkIntToScalar(kBlockSize)); in drawCase4() 309 SkIntToScalar(kBlockSize), SkIntToScalar(kBlockSize)); in drawCase5() 338 constexpr SkScalar kBottom = SkIntToScalar(kRow4Y + kBlockSize + kBlockSpacing); in onDraw() 407 SkScalar x = kBlockSize + SkTMax(SkTMax(corners[0].fX, corners[1].fX), in onDraw() 421 static constexpr int kBlockSize = 70; member in BleedGM 425 static constexpr int kCol1X = 2*kBlockSpacing + kBlockSize; 426 static constexpr int kCol2X = 3*kBlockSpacing + 2*kBlockSize; [all …]
|
/third_party/mindspore/mindspore/core/ops/ |
D | depth_to_space.cc | 29 CheckAndConvertUtils::Check(kBlockSize, block_size, kGreaterEqual, "", 2, this->name()); in set_block_size() 30 (void)this->AddAttr(kBlockSize, MakeValue(block_size)); in set_block_size() 33 int64_t DepthToSpace::get_block_size() const { return GetValue<int64_t>(GetAttr(kBlockSize)); } in get_block_size() 64 int64_t block_size = GetValue<int64_t>(primitive->GetAttr(kBlockSize)); in DepthToSpaceInfer()
|
D | space_to_depth.cc | 27 CheckAndConvertUtils::Check(kBlockSize, block_size, kGreaterEqual, "", 2, this->name()); in set_block_size() 28 (void)AddAttr(kBlockSize, MakeValue(block_size)); in set_block_size() 32 auto value_ptr = GetAttr(kBlockSize); in get_block_size()
|
D | batch_to_space.cc | 30 (void)this->AddAttr(kBlockSize, MakeValue(block_size)); in set_block_size() 34 auto value_ptr = this->GetAttr(kBlockSize); in get_block_size() 59 auto block_size = GetValue<std::vector<int64_t>>(primitive->GetAttr(kBlockSize)); in BatchToSpaceInfer()
|
D | space_to_batch.cc | 36 auto block_shape_vector = GetValue<std::vector<int64_t>>(primitive->GetAttr(kBlockSize)); in InferShape() 77 (void)this->AddAttr(kBlockSize, MakeValue(block_size)); in set_block_size() 81 return GetValue<std::vector<int64_t>>(GetAttr(kBlockSize)); in get_block_size()
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/cuda_impl/ |
D | general_reduction_impl.cu | 24 const int kBlockSize = 512; variable 26 const int kNumWarps = kBlockSize / kWarpSize; // 16 224 …for (int t_idx = blockIdx.x * blockDim.x + threadIdx.x; t_idx < kBlockSize * outer_size * inner_si… in BlockReduction() 226 int outer_id = t_idx / kBlockSize / inner_size; in BlockReduction() 227 int inner_id = t_idx / kBlockSize % inner_size; in BlockReduction() 229 int tgId = threadIdx.x % kBlockSize; in BlockReduction() 242 for (int i = tgId; i < bound; i += kBlockSize) { in BlockReduction() 309 ThreadReduction<T, S><<<GET_BLOCKS(block_num_limit), kBlockSize, 0, stream>>>( in GeneralReduction() 312 WarpReduction<T, S><<<GET_BLOCKS(block_num_limit * kWarpSize), kBlockSize, 0, stream>>>( in GeneralReduction() 315 Warp4Reduction<T, S><<<GET_BLOCKS(block_num_limit * kGroupSize), kBlockSize, 0, stream>>>( in GeneralReduction() [all …]
|
D | batchnorm_grad_impl.cu | 26 const int kBlockSize = 1024; variable 110 …BatchNormGradKernel<<<C, kBlockSize, 0, cuda_stream>>>(x, dy, scale, save_mean, save_variance, dx,… in CalBatchNormGrad()
|
/third_party/skia/src/shaders/ |
D | SkPerlinNoiseShader.cpp | 34 static const int kBlockSize = 256; variable 35 static const int kBlockMask = kBlockSize - 1; 90 SkImageInfo info = SkImageInfo::MakeA8(kBlockSize, 1); in PaintingData() 94 info = SkImageInfo::Make(kBlockSize, 4, kRGBA_8888_SkColorType, kPremul_SkAlphaType); in PaintingData() 115 uint8_t fLatticeSelector[kBlockSize]; 116 uint16_t fNoise[4][kBlockSize][2]; 117 SkPoint fGradient[4][kBlockSize]; 157 for (int i = 0; i < kBlockSize; ++i) { in init() 159 fNoise[channel][i][0] = (random() % (2 * kBlockSize)); in init() 160 fNoise[channel][i][1] = (random() % (2 * kBlockSize)); in init() [all …]
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/ |
D | assign_cpu_kernel.cc | 70 constexpr size_t kBlockSize = 10000; in Launch() local 71 size_t thread_num = (total_size + kBlockSize - 1) / kBlockSize; in Launch()
|
D | embedding_look_up_cpu_kernel.cc | 27 constexpr size_t kBlockSize = 10000; variable 108 size_t thread_num = indices_lens_ / kBlockSize + 1; in LaunchKernel()
|
/third_party/flutter/skia/src/shaders/ |
D | SkPerlinNoiseShader.cpp | 31 static const int kBlockSize = 256; variable 32 static const int kBlockMask = kBlockSize - 1; 118 SkImageInfo info = SkImageInfo::MakeA8(kBlockSize, 1); in PaintingData() 122 info = SkImageInfo::MakeN32Premul(kBlockSize, 4); in PaintingData() 170 uint8_t fLatticeSelector[kBlockSize]; 171 uint16_t fNoise[4][kBlockSize][2]; 172 SkPoint fGradient[4][kBlockSize]; 201 static const SkScalar gInvBlockSizef = SkScalarInvert(SkIntToScalar(kBlockSize)); in init() 213 for (int i = 0; i < kBlockSize; ++i) { in init() 215 fNoise[channel][i][0] = (random() % (2 * kBlockSize)); in init() [all …]
|
/third_party/flutter/skia/src/utils/ |
D | SkJSONWriter.h | 50 : fBlock(new char[kBlockSize]) in fBlock() argument 52 , fBlockEnd(fBlock + kBlockSize) in fBlock() 250 kBlockSize = 32 * 1024, enumerator 309 if (length > kBlockSize) { in write()
|
/third_party/skia/src/utils/ |
D | SkJSONWriter.h | 50 : fBlock(new char[kBlockSize]) in fBlock() argument 52 , fBlockEnd(fBlock + kBlockSize) in fBlock() 250 kBlockSize = 32 * 1024, enumerator 309 if (length > kBlockSize) { in write()
|
/third_party/flutter/skia/third_party/externals/libwebp/imageio/ |
D | imageio_util.c | 37 static const size_t kBlockSize = 16384; // default initial size in ImgIoUtilReadFromStdin() local 50 const size_t extra_size = (max_size == 0) ? kBlockSize : max_size; in ImgIoUtilReadFromStdin()
|
/third_party/skia/third_party/externals/libwebp/imageio/ |
D | imageio_util.c | 37 static const size_t kBlockSize = 16384; // default initial size in ImgIoUtilReadFromStdin() local 50 const size_t extra_size = (max_size == 0) ? kBlockSize : max_size; in ImgIoUtilReadFromStdin()
|
/third_party/flutter/skia/tools/trace/ |
D | ChromeTracingTracer.cpp | 60 fCurBlock.fBlock = BlockPtr(new uint8_t[kBlockSize]); in createBlock() 66 SkASSERT(size > 0 && size <= kBlockSize); in appendEvent() 69 if (fCurBlockUsed + size > kBlockSize) { in appendEvent()
|
D | ChromeTracingTracer.h | 56 kBlockSize = 512 * 1024, enumerator
|
/third_party/skia/tools/trace/ |
D | ChromeTracingTracer.cpp | 60 fCurBlock.fBlock = BlockPtr(new uint8_t[kBlockSize]); in createBlock() 66 SkASSERT(size > 0 && size <= kBlockSize); in appendEvent() 69 if (fCurBlockUsed + size > kBlockSize) { in appendEvent()
|
D | ChromeTracingTracer.h | 56 kBlockSize = 512 * 1024, enumerator
|
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/ |
D | string_view_benchmark.cc | 294 const int kBlockSize = 1 << 12; in StringViewMapBenchmark() local 295 std::unordered_set<std::string> t(kBlockSize); in StringViewMapBenchmark()
|
/third_party/abseil-cpp/absl/strings/ |
D | string_view_benchmark.cc | 294 const int kBlockSize = 1 << 12; in StringViewMapBenchmark() local 295 std::unordered_set<std::string> t(kBlockSize); in StringViewMapBenchmark()
|
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/ |
D | SecondaryCommandBuffer.h | 520 static constexpr size_t kBlockSize = 1364; variable 522 static_assert((kBlockSize % 4) == 0, "Check kBlockSize alignment"); 561 mCurrentWritePointer = mAllocator->fastAllocate(kBlockSize); in allocateNewBlock() 562 mCurrentBytesRemaining = kBlockSize; in allocateNewBlock()
|