/external/chromium_org/media/cdm/ppapi/ |
D | fake_cdm_video_decoder.cc | 50 const int kAlignment = 8; in DecodeFrame() local 59 int y_stride = (width + kAlignment - 1) / kAlignment * kAlignment + kPadding; in DecodeFrame() 61 (width / 2 + kAlignment - 1) / kAlignment * kAlignment + kPadding; in DecodeFrame()
|
/external/skia/src/gpu/ |
D | GrMemoryPool.cpp | 20 fMinAllocSize = GrSizeAlignUp(minAllocSize + kPerAllocPad, kAlignment), in GrMemoryPool() 21 fPreallocSize = GrSizeAlignUp(preallocSize + kPerAllocPad, kAlignment); in GrMemoryPool() 41 size = GrSizeAlignUp(size, kAlignment); in allocate() 109 SkASSERT(!(reinterpret_cast<intptr_t>(block) % kAlignment)); in CreateBlock() 140 SkASSERT(!(b % kAlignment)); in validate() 141 SkASSERT(!(totalSize % kAlignment)); in validate() 142 SkASSERT(!(userSize % kAlignment)); in validate() 143 SkASSERT(!(block->fCurrPtr % kAlignment)); in validate()
|
D | GrMemoryPool.h | 67 kAlignment = 8, enumerator 68 kHeaderSize = GR_CT_ALIGN_UP(sizeof(BlockHeader), kAlignment), 69 kPerAllocPad = GR_CT_ALIGN_UP(sizeof(BlockHeader*), kAlignment),
|
/external/chromium_org/third_party/skia/src/gpu/ |
D | GrMemoryPool.cpp | 20 fMinAllocSize = GrSizeAlignUp(minAllocSize + kPerAllocPad, kAlignment), in GrMemoryPool() 21 fPreallocSize = GrSizeAlignUp(preallocSize + kPerAllocPad, kAlignment); in GrMemoryPool() 41 size = GrSizeAlignUp(size, kAlignment); in allocate() 109 SkASSERT(!(reinterpret_cast<intptr_t>(block) % kAlignment)); in CreateBlock() 140 SkASSERT(!(b % kAlignment)); in validate() 141 SkASSERT(!(totalSize % kAlignment)); in validate() 142 SkASSERT(!(userSize % kAlignment)); in validate() 143 SkASSERT(!(block->fCurrPtr % kAlignment)); in validate()
|
D | GrMemoryPool.h | 67 kAlignment = 8, enumerator 68 kHeaderSize = GR_CT_ALIGN_UP(sizeof(BlockHeader), kAlignment), 69 kPerAllocPad = GR_CT_ALIGN_UP(sizeof(BlockHeader*), kAlignment),
|
/external/chromium_org/third_party/tcmalloc/vendor/src/ |
D | common.cc | 56 int alignment = kAlignment; in AlignmentForSize() 112 int alignment = kAlignment; in Init() 113 CHECK_CONDITION(kAlignment <= 16); in Init() 114 for (size_t size = kAlignment; size <= kMaxSize; size += alignment) { in Init() 160 for (int s = next_size; s <= max_size_in_class; s += kAlignment) { in Init() 163 next_size = max_size_in_class + kAlignment; in Init()
|
D | common.h | 75 static const size_t kAlignment = 8; variable
|
/external/chromium_org/v8/src/ |
D | zone-inl.h | 44 size = RoundUp(size, kAlignment); in New() 48 if (kPointerSize == 4 && kAlignment == 4) { in New() 51 ASSERT(kAlignment >= kPointerSize); in New() 64 ASSERT(IsAddressAligned(result, kAlignment, 0)); in New()
|
D | zone.cc | 121 position_ = RoundUp(start, kAlignment); in DeleteAll() 180 ASSERT(size == RoundDown(size, kAlignment)); in NewExpand() 189 static const size_t kSegmentOverhead = sizeof(Segment) + kAlignment; in NewExpand() 219 Address result = RoundUp(segment->start(), kAlignment); in NewExpand()
|
D | spaces.cc | 153 MemoryChunk::kAlignment); in SetUp() 222 size_t aligned_requested = RoundUp(requested_size, MemoryChunk::kAlignment); in AllocateRawMemory() 231 ASSERT(IsAddressAligned(current.start, MemoryChunk::kAlignment)); in AllocateRawMemory() 259 ASSERT(IsAddressAligned(address, MemoryChunk::kAlignment)); in FreeRawMemory() 658 MemoryChunk::kAlignment)); in AllocateChunk() 666 MemoryChunk::kAlignment, in AllocateChunk() 688 MemoryChunk::kAlignment, in AllocateChunk() 2949 uintptr_t base = reinterpret_cast<uintptr_t>(page) / MemoryChunk::kAlignment; in AllocateRaw() 2950 uintptr_t limit = base + (page->size() - 1) / MemoryChunk::kAlignment; in AllocateRaw() 2997 uintptr_t key = reinterpret_cast<uintptr_t>(a) / MemoryChunk::kAlignment; in FindPage() [all …]
|
D | zone.h | 93 static const int kAlignment = kPointerSize; variable
|
/external/chromium_org/mojo/public/bindings/lib/ |
D | bindings_serialization.cc | 13 const size_t kAlignment = 8; in Align() local 14 return size + (kAlignment - (size % kAlignment)) % kAlignment; in Align()
|
/external/v8/src/ |
D | zone-inl.h | 45 size = RoundUp(size, kAlignment); in New() 49 if (kPointerSize == 4 && kAlignment == 4) { in New() 52 ASSERT(kAlignment >= kPointerSize); in New() 65 ASSERT(IsAddressAligned(result, kAlignment, 0)); in New()
|
D | zone.cc | 144 position_ = RoundUp(start, kAlignment); in DeleteAll() 170 ASSERT(size == RoundDown(size, kAlignment)); in NewExpand() 179 static const int kSegmentOverhead = sizeof(Segment) + kAlignment; in NewExpand() 203 Address result = RoundUp(segment->start(), kAlignment); in NewExpand()
|
D | zone.h | 98 static const int kAlignment = kPointerSize; variable
|
D | spaces.cc | 152 MemoryChunk::kAlignment); in SetUp() 220 size_t aligned_requested = RoundUp(requested, MemoryChunk::kAlignment); in AllocateRawMemory() 229 ASSERT(IsAddressAligned(current.start, MemoryChunk::kAlignment)); in AllocateRawMemory() 246 ASSERT(IsAddressAligned(address, MemoryChunk::kAlignment)); in FreeRawMemory() 516 MemoryChunk::kAlignment)); in AllocateChunk() 523 MemoryChunk::kAlignment, in AllocateChunk() 540 MemoryChunk::kAlignment, in AllocateChunk() 2605 uintptr_t base = reinterpret_cast<uintptr_t>(page) / MemoryChunk::kAlignment; in AllocateRaw() 2606 uintptr_t limit = base + (page->size() - 1) / MemoryChunk::kAlignment; in AllocateRaw() 2640 uintptr_t key = reinterpret_cast<uintptr_t>(a) / MemoryChunk::kAlignment; in FindPage() [all …]
|
/external/chromium_org/third_party/tcmalloc/chromium/src/ |
D | common.cc | 60 int alignment = kAlignment; in AlignmentForSize() 116 int alignment = kAlignment; in Init() 117 CHECK_CONDITION(kAlignment <= 16); in Init() 164 for (int s = next_size; s <= max_size_in_class; s += kAlignment) { in Init() 167 next_size = max_size_in_class + kAlignment; in Init()
|
D | common.h | 65 static const size_t kAlignment = 8; variable 75 (kLinkSize > kAlignment ? kLinkSize : kAlignment); 76 static const size_t kSkippedClasses = (kAlignment < kMinClassSize ? 1 : 0);
|
/external/chromium_org/gpu/command_buffer/client/ |
D | transfer_buffer_unittest.cc | 32 static const unsigned int kAlignment = 4; member in gpu::TransferBufferTest 48 kAlignment, in Initialize() 93 const unsigned int TransferBufferTest::kAlignment; member in gpu::TransferBufferTest 230 static const unsigned int kAlignment = 4; member in gpu::TransferBufferExpandContractTest 281 kAlignment, in SetUp() 303 const unsigned int TransferBufferExpandContractTest::kAlignment; member in gpu::TransferBufferExpandContractTest
|
/external/chromium_org/third_party/libjingle/source/talk/media/base/ |
D | videoframe_unittest.h | 68 static const int kAlignment = 16; variable 517 talk_base::scoped_ptr<uint8[]> buf(new uint8[buf_size + kAlignment]); in ConstructI422() 518 uint8* y = ALIGNP(buf.get(), kAlignment); in ConstructI422() 538 talk_base::scoped_ptr<uint8[]> buf(new uint8[buf_size + kAlignment]); in ConstructYuy2() 539 uint8* yuy2 = ALIGNP(buf.get(), kAlignment); in ConstructYuy2() 555 talk_base::scoped_ptr<uint8[]> buf(new uint8[buf_size + kAlignment + 1]); in ConstructYuy2Unaligned() 556 uint8* yuy2 = ALIGNP(buf.get(), kAlignment) + 1; in ConstructYuy2Unaligned() 721 talk_base::scoped_ptr<uint8[]> outbuf(new uint8[out_size + kAlignment]); in ConstructRGB565() 722 uint8 *out = ALIGNP(outbuf.get(), kAlignment); in ConstructRGB565() 737 talk_base::scoped_ptr<uint8[]> outbuf(new uint8[out_size + kAlignment]); in ConstructARGB1555() [all …]
|
/external/chromium_org/mojo/apps/js/bindings/ |
D | codec.js | 53 var kAlignment = 8; 56 return size + (kAlignment - (size % kAlignment)) % kAlignment;
|
/external/chromium/third_party/libjingle/source/talk/base/ |
D | stream.cc | 671 buffer_alloc_ = new char[buffer_length_ + kAlignment]; in SetData() 672 buffer_ = reinterpret_cast<char*>(ALIGNP(buffer_alloc_, kAlignment)); in SetData() 681 if (char* new_buffer_alloc = new char[size + kAlignment]) { in DoReserve() 683 ALIGNP(new_buffer_alloc, kAlignment)); in DoReserve()
|
/external/chromium_org/third_party/libjingle/source/talk/base/ |
D | stream.cc | 868 buffer_alloc_ = new char[buffer_length_ + kAlignment]; in SetData() 869 buffer_ = reinterpret_cast<char*>(ALIGNP(buffer_alloc_, kAlignment)); in SetData() 878 if (char* new_buffer_alloc = new char[size + kAlignment]) { in DoReserve() 880 ALIGNP(new_buffer_alloc, kAlignment)); in DoReserve()
|
/external/chromium_org/third_party/tcmalloc/chromium/src/tests/ |
D | tcmalloc_unittest.cc | 955 const int kAlignment = 1 << 5; in TestSetNewMode() local 959 ret = Memalign(kAlignment, kTooBig); in TestSetNewMode() 966 PosixMemalign(&ret, kAlignment, kTooBig)); in TestSetNewMode()
|
/external/chromium_org/third_party/tcmalloc/vendor/src/tests/ |
D | tcmalloc_unittest.cc | 955 const int kAlignment = 1 << 5; in TestSetNewMode() local 959 ret = Memalign(kAlignment, kTooBig); in TestSetNewMode() 966 PosixMemalign(&ret, kAlignment, kTooBig)); in TestSetNewMode()
|