Home
last modified time | relevance | path

Searched refs:checkedOffset (Results 1 – 5 of 5) sorted by relevance

/third_party/skia/third_party/externals/angle2/src/compiler/translator/
Dblocklayout.cpp215 angle::base::CheckedNumeric<size_t> checkedOffset(arrayStride); in encodeArrayOfPreEncodedStructs() local
216 checkedOffset *= outermostArraySize; in encodeArrayOfPreEncodedStructs()
217 checkedOffset /= kBytesPerComponent; in encodeArrayOfPreEncodedStructs()
218 checkedOffset += mCurrentOffset; in encodeArrayOfPreEncodedStructs()
219 mCurrentOffset = checkedOffset.ValueOrDefault(std::numeric_limits<size_t>::max()); in encodeArrayOfPreEncodedStructs()
226 angle::base::CheckedNumeric<size_t> checkedOffset(mCurrentOffset); in getCurrentOffset() local
227 checkedOffset *= kBytesPerComponent; in getCurrentOffset()
228 return checkedOffset.ValueOrDefault(std::numeric_limits<size_t>::max()); in getCurrentOffset()
258 angle::base::CheckedNumeric<size_t> checkedOffset(mCurrentOffset); in align() local
259 checkedOffset += baseAlignment; in align()
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/
DBinaryStream.h111 angle::CheckedNumeric<size_t> checkedOffset(mOffset); in readString()
112 checkedOffset += length; in readString()
114 if (!checkedOffset.IsValid() || mOffset + length > mLength) in readString()
121 mOffset = checkedOffset.ValueOrDie(); in readString()
133 angle::CheckedNumeric<size_t> checkedOffset(mOffset); in skip()
134 checkedOffset += length; in skip()
136 if (!checkedOffset.IsValid() || mOffset + length > mLength) in skip()
142 mOffset = checkedOffset.ValueOrDie(); in skip()
177 angle::CheckedNumeric<size_t> checkedOffset(mOffset); in read()
178 checkedOffset += checkedLength; in read()
[all …]
DvalidationES31.cpp525 CheckedNumeric<size_t> checkedOffset(reinterpret_cast<size_t>(indirect)); in ValidateDrawArraysIndirect() local
528 auto checkedSum = checkedOffset + 4 * sizeof(GLuint); in ValidateDrawArraysIndirect()
563 CheckedNumeric<size_t> checkedOffset(reinterpret_cast<size_t>(indirect)); in ValidateDrawElementsIndirect() local
566 auto checkedSum = checkedOffset + 5 * sizeof(GLuint); in ValidateDrawElementsIndirect()
1545 CheckedNumeric<GLuint64> checkedOffset(static_cast<GLuint64>(indirect)); in ValidateDispatchComputeIndirect() local
1546 auto checkedSum = checkedOffset + static_cast<GLuint64>(3 * sizeof(GLuint)); in ValidateDispatchComputeIndirect()
DvalidationES.cpp1202 CheckedNumeric<size_t> checkedOffset(reinterpret_cast<size_t>(pixels)); in ValidImageDataSize() local
1203 checkedEndByte += checkedOffset; in ValidImageDataSize()
5087 CheckedNumeric<size_t> checkedOffset(offset); in ValidateMapBufferRangeBase() local
5088 auto checkedSize = checkedOffset + length; in ValidateMapBufferRangeBase()
5207 CheckedNumeric<size_t> checkedOffset(offset); in ValidateFlushMappedBufferRangeBase() local
5208 auto checkedSize = checkedOffset + length; in ValidateFlushMappedBufferRangeBase()
6994 CheckedNumeric<size_t> checkedOffset(reinterpret_cast<size_t>(pixels)); in ValidatePixelPack() local
6995 checkedEndByte += checkedOffset; in ValidatePixelPack()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/
DVertexDataManager.cpp399 CheckedNumeric<unsigned int> checkedOffset(streamOffset); in StoreStaticAttrib() local
400 checkedOffset += firstElementOffset; in StoreStaticAttrib()
402 ANGLE_CHECK_GL_MATH(GetImplAs<ContextD3D>(context), checkedOffset.IsValid()); in StoreStaticAttrib()