Searched refs:kAlignment (Results 1 - 25 of 28) sorted by relevance

12

/external/chromium_org/media/cdm/ppapi/external_clear_key/
H A Dfake_cdm_video_decoder.cc50 const int kAlignment = 8; local
59 int y_stride = (width + kAlignment - 1) / kAlignment * kAlignment + kPadding;
61 (width / 2 + kAlignment - 1) / kAlignment * kAlignment + kPadding;
/external/chromium_org/third_party/skia/src/gpu/
H A DGrMemoryPool.h67 kAlignment = 8, enumerator in enum:GrMemoryPool::__anon15260
68 kHeaderSize = GR_CT_ALIGN_UP(sizeof(BlockHeader), kAlignment),
69 kPerAllocPad = GR_CT_ALIGN_UP(sizeof(BlockHeader*), kAlignment),
H A DGrMemoryPool.cpp20 fMinAllocSize = GrSizeAlignUp(minAllocSize + kPerAllocPad, kAlignment),
21 fPreallocSize = GrSizeAlignUp(preallocSize + kPerAllocPad, kAlignment);
41 size = GrSizeAlignUp(size, kAlignment);
109 SkASSERT(!(reinterpret_cast<intptr_t>(block) % kAlignment));
140 SkASSERT(!(b % kAlignment));
141 SkASSERT(!(totalSize % kAlignment));
142 SkASSERT(!(userSize % kAlignment));
143 SkASSERT(!(block->fCurrPtr % kAlignment));
/external/skia/src/gpu/
H A DGrMemoryPool.h67 kAlignment = 8, enumerator in enum:GrMemoryPool::__anon30672
68 kHeaderSize = GR_CT_ALIGN_UP(sizeof(BlockHeader), kAlignment),
69 kPerAllocPad = GR_CT_ALIGN_UP(sizeof(BlockHeader*), kAlignment),
H A DGrMemoryPool.cpp20 fMinAllocSize = GrSizeAlignUp(minAllocSize + kPerAllocPad, kAlignment),
21 fPreallocSize = GrSizeAlignUp(preallocSize + kPerAllocPad, kAlignment);
41 size = GrSizeAlignUp(size, kAlignment);
109 SkASSERT(!(reinterpret_cast<intptr_t>(block) % kAlignment));
140 SkASSERT(!(b % kAlignment));
141 SkASSERT(!(totalSize % kAlignment));
142 SkASSERT(!(userSize % kAlignment));
143 SkASSERT(!(block->fCurrPtr % kAlignment));
/external/chromium_org/mojo/public/cpp/bindings/lib/
H A Dbindings_serialization.cc17 const size_t kAlignment = 8; member in namespace:mojo::internal::__anon8769
21 return t + (kAlignment - (t % kAlignment)) % kAlignment;
35 return !(reinterpret_cast<uintptr_t>(ptr) % kAlignment);
/external/chromium_org/third_party/tcmalloc/vendor/src/
H A Dcommon.cc56 int alignment = kAlignment;
112 int alignment = kAlignment;
113 CHECK_CONDITION(kAlignment <= 16);
114 for (size_t size = kAlignment; size <= kMaxSize; size += alignment) {
160 for (int s = next_size; s <= max_size_in_class; s += kAlignment) {
163 next_size = max_size_in_class + kAlignment;
H A Dcommon.h75 static const size_t kAlignment = 8; variable
/external/chromium_org/third_party/tcmalloc/chromium/src/
H A Dcommon.h65 static const size_t kAlignment = 8; variable
75 (kLinkSize > kAlignment ? kLinkSize : kAlignment);
76 static const size_t kSkippedClasses = (kAlignment < kMinClassSize ? 1 : 0);
H A Dcommon.cc60 int alignment = kAlignment;
116 int alignment = kAlignment;
117 CHECK_CONDITION(kAlignment <= 16);
164 for (int s = next_size; s <= max_size_in_class; s += kAlignment) {
167 next_size = max_size_in_class + kAlignment;
/external/chromium_org/third_party/libjingle/source/talk/session/media/
H A Dplanarfunctions_unittest.cc63 static const int kAlignment = 16; member in namespace:cricket
158 uint8* image_pointer = new uint8[y_size + u_size + v_size + kAlignment];
159 y_pointer = ALIGNP(image_pointer, kAlignment);
160 u_pointer = ALIGNP(&image_pointer[y_size], kAlignment);
161 v_pointer = ALIGNP(&image_pointer[y_size + u_size], kAlignment);
198 uint8* image_pointer = new uint8[2 * height * awidth + kAlignment];
199 yuv_pointer = ALIGNP(image_pointer, kAlignment);
270 ((height + 1) / 2) * width + kAlignment];
271 y_pointer = ALIGNP(image_pointer, kAlignment);
321 ((height + 1) / 2) * ((width + 1) / 2) * 2 + kAlignment];
[all...]
H A Dyuvscaler_unittest.cc53 static const int kAlignment = 16; variable
104 scoped_ptr<uint8[]> ibuffer(new uint8[isize + kAlignment + memoffset]());
105 scoped_ptr<uint8[]> obuffer(new uint8[osize + kAlignment + memoffset]());
106 scoped_ptr<uint8[]> xbuffer(new uint8[osize + kAlignment + memoffset]());
108 uint8 *ibuf = ALIGNP(ibuffer.get(), kAlignment) + memoffset;
109 uint8 *obuf = ALIGNP(obuffer.get(), kAlignment) + memoffset;
110 uint8 *xbuf = ALIGNP(xbuffer.get(), kAlignment) + memoffset;
209 scoped_ptr<uint8[]> ibuffer(new uint8[I420_SIZE(iw, ih) + kAlignment]);
210 scoped_ptr<uint8[]> obuffer(new uint8[I420_SIZE(ow, oh) + kAlignment]);
212 uint8 *ibuf = ALIGNP(ibuffer.get(), kAlignment);
[all...]
/external/chromium_org/v8/src/
H A Dzone.cc67 size = RoundUp(size, kAlignment);
71 if (kPointerSize == 4 && kAlignment == 4) {
74 DCHECK(kAlignment >= kPointerSize);
100 DCHECK(IsAddressAligned(result, kAlignment, 0));
141 position_ = RoundUp(start, kAlignment);
204 DCHECK(size == RoundDown(size, kAlignment));
213 static const size_t kSegmentOverhead = sizeof(Segment) + kAlignment;
243 Address result = RoundUp(segment->start(), kAlignment);
H A Dzone.h77 static const int kAlignment = 8; member in class:v8::internal::Zone
80 static const int kAlignment = kPointerSize; member in class:v8::internal::Zone
118 // is guaranteed to be aligned as dictated by kAlignment.
/external/chromium_org/gpu/command_buffer/client/
H A Dtransfer_buffer_unittest.cc32 static const unsigned int kAlignment = 4; member in class:gpu::TransferBufferTest
48 kAlignment,
93 const unsigned int TransferBufferTest::kAlignment; member in class:gpu::TransferBufferTest
187 EXPECT_EQ((reinterpret_cast<uintptr_t>(ptr) & (kAlignment - 1)), 0u);
191 EXPECT_EQ((reinterpret_cast<uintptr_t>(ptr) & (kAlignment - 1)), 0u);
242 static const unsigned int kAlignment = 4; member in class:gpu::TransferBufferExpandContractTest
293 kAlignment,
315 const unsigned int TransferBufferExpandContractTest::kAlignment; member in class:gpu::TransferBufferExpandContractTest
H A Dring_buffer_test.cc38 static const unsigned int kAlignment = 4; member in class:gpu::BaseRingBufferTest
131 allocator_.reset(new RingBuffer(kAlignment, kBaseOffset, kBufferSize,
202 const unsigned int kAlloc1 = 3*kAlignment;
H A Dgles2_implementation.h179 static const unsigned int kAlignment = 4; member in class:gpu::gles2::GLES2Implementation
/external/chromium_org/third_party/libjingle/source/talk/media/base/
H A Dvideoframe_unittest.h68 static const int kAlignment = 16; member in class:VideoFrameTest
526 rtc::scoped_ptr<uint8[]> buf(new uint8[buf_size + kAlignment]);
527 uint8* y = ALIGNP(buf.get(), kAlignment);
547 rtc::scoped_ptr<uint8[]> buf(new uint8[buf_size + kAlignment]);
548 uint8* yuy2 = ALIGNP(buf.get(), kAlignment);
564 rtc::scoped_ptr<uint8[]> buf(new uint8[buf_size + kAlignment + 1]);
565 uint8* yuy2 = ALIGNP(buf.get(), kAlignment) + 1;
730 rtc::scoped_ptr<uint8[]> outbuf(new uint8[out_size + kAlignment]);
731 uint8* out = ALIGNP(outbuf.get(), kAlignment);
746 rtc::scoped_ptr<uint8[]> outbuf(new uint8[out_size + kAlignment]);
[all...]
/external/chromium_org/mojo/public/js/bindings/
H A Dcodec.js14 var kAlignment = 8;
17 return size + (kAlignment - (size % kAlignment)) % kAlignment;
21 return offset >= 0 && (offset % kAlignment) === 0;
/external/chromium_org/third_party/webrtc/base/
H A Dstream.cc851 buffer_alloc_ = new char[buffer_length_ + kAlignment];
852 buffer_ = reinterpret_cast<char*>(ALIGNP(buffer_alloc_, kAlignment));
861 if (char* new_buffer_alloc = new char[size + kAlignment]) {
863 ALIGNP(new_buffer_alloc, kAlignment));
H A Dstream.h607 static const int kAlignment = 16; member in class:rtc::MemoryStream
/external/chromium_org/third_party/tcmalloc/chromium/src/tests/
H A Dtcmalloc_unittest.cc954 // kAlignment + kTooBig does not overflow.
955 const int kAlignment = 1 << 5; local
959 ret = Memalign(kAlignment, kTooBig);
966 PosixMemalign(&ret, kAlignment, kTooBig));
/external/chromium_org/third_party/tcmalloc/vendor/src/tests/
H A Dtcmalloc_unittest.cc954 // kAlignment + kTooBig does not overflow.
955 const int kAlignment = 1 << 5; local
959 ret = Memalign(kAlignment, kTooBig);
966 PosixMemalign(&ret, kAlignment, kTooBig));
/external/chromium_org/v8/src/heap/
H A Dspaces.cc128 MemoryChunk::kAlignment);
198 size_t aligned_requested = RoundUp(requested_size, MemoryChunk::kAlignment);
207 DCHECK(IsAddressAligned(current.start, MemoryChunk::kAlignment));
234 DCHECK(IsAddressAligned(address, MemoryChunk::kAlignment));
565 // +----------------------------+<- base aligned with MemoryChunk::kAlignment
580 // +----------------------------+<- base aligned with MemoryChunk::kAlignment
612 IsAligned(reinterpret_cast<intptr_t>(base), MemoryChunk::kAlignment)); member in class:v8::internal::MemoryChunk
619 MemoryChunk::kAlignment, executable,
640 AllocateAlignedMemory(chunk_size, commit_size, MemoryChunk::kAlignment,
2862 // Register all MemoryChunk::kAlignment
[all...]
/external/chromium_org/v8/test/cctest/
H A Dtest-spaces.cc175 MemoryChunk::kAlignment : v8::base::OS::CommitPageSize();

Completed in 6349 milliseconds

12