Home
last modified time | relevance | path

Searched refs:mSize (Results 1 – 25 of 76) sorted by relevance

1234

/third_party/skia/third_party/externals/angle2/src/tests/egl_tests/
DEGLPreRotationTest.cpp64 mSize(256) in EGLPreRotationSurfaceTest()
99 mOSWindow->initialize("EGLSurfaceTest", mSize, mSize); in testSetUp()
221 EXPECT_PIXEL_COLOR_EQ(0, mSize - 1, GLColor::green); in testDrawingAndReadPixels()
222 EXPECT_PIXEL_COLOR_EQ(mSize - 1, 0, GLColor::red); in testDrawingAndReadPixels()
223 EXPECT_PIXEL_COLOR_EQ(mSize - 1, mSize - 1, GLColor::yellow); in testDrawingAndReadPixels()
231 EXPECT_PIXEL_COLOR_EQ(0, mSize - 1, GLColor::green); in testDrawingAndReadPixels()
232 EXPECT_PIXEL_COLOR_EQ(mSize - 1, 0, GLColor::red); in testDrawingAndReadPixels()
233 EXPECT_PIXEL_COLOR_EQ(mSize - 1, mSize - 1, GLColor::yellow); in testDrawingAndReadPixels()
290 int mSize; member in __anon6600be5e0111::EGLPreRotationSurfaceTest
486 EXPECT_PIXEL_COLOR_EQ(mSize - 1, 0, expectedPixelLowerRight); in TEST_P()
[all …]
/third_party/skia/third_party/externals/angle2/src/common/
DFixedVector.h92 size_type mSize = 0; variable
111 FixedVector<T, N, Storage>::FixedVector(size_type count, const value_type &value) : mSize(count) in FixedVector()
118 FixedVector<T, N, Storage>::FixedVector(size_type count) : mSize(count) in FixedVector()
217 return mStorage.begin() + mSize; in end()
223 return mStorage.begin() + mSize; in end()
229 return mSize == 0; in empty()
235 return mSize; in size()
253 ASSERT(mSize < N); in push_back()
254 mStorage[mSize] = value; in push_back()
255 mSize++; in push_back()
[all …]
DFastVector.h102 size_type mSize = 0; variable
132 mSize = count; in FastVector()
140 mSize = count; in FastVector()
166 mSize = newSize; in FastVector()
174 ensure_capacity(other.mSize);
175 mSize = other.mSize;
208 ASSERT(pos < mSize); in at()
216 ASSERT(pos < mSize); in at()
224 ASSERT(pos < mSize);
232 ASSERT(pos < mSize);
[all …]
DMemoryBuffer.cpp36 mSize = 0; in resize()
40 if (size == mSize) in resize()
55 std::copy(mData, mData + std::min(mSize, size), newMemory); in resize()
60 mSize = size; in resize()
69 std::fill(mData, mData + mSize, datum); in fill()
80 std::swap(mSize, other.mSize); in operator =()
DMemoryBuffer.h31 size_t size() const { return mSize; } in size()
32 bool empty() const { return mSize == 0; } in empty()
43 ASSERT(pos < mSize);
48 ASSERT(pos < mSize);
55 size_t mSize = 0;
Dangleutils.h104 constexpr WrappedArray(const T (&data)[N]) : mArray(&data[0]), mSize(N) in WrappedArray()
107 constexpr WrappedArray() : mArray(nullptr), mSize(0) {} in WrappedArray()
108 constexpr WrappedArray(const T *data, size_t size) : mArray(data), mSize(size) {} in WrappedArray()
113 std::swap(mSize, other.mSize); in WrappedArray()
119 constexpr size_t size() const { return mSize; } in size()
123 size_t mSize; variable
/third_party/skia/third_party/externals/dawn/src/common/
Dityp_span.h34 constexpr span() : mData(nullptr), mSize(0) { in span()
36 constexpr span(Value* data, Index size) : mData(data), mSize(size) { in span()
40 ASSERT(i < mSize);
61 return mData + static_cast<I>(mSize); in end()
65 return mData + static_cast<I>(mSize); in end()
70 ASSERT(static_cast<I>(mSize) >= 0); in front()
76 ASSERT(static_cast<I>(mSize) >= 0); in front()
82 ASSERT(static_cast<I>(mSize) >= 0); in back()
83 return *(mData + static_cast<I>(mSize) - 1); in back()
88 ASSERT(static_cast<I>(mSize) >= 0); in back()
[all …]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/
DCommon.h123 constexpr TSpan(T *ptr, size_type size) : mData(ptr), mSize(size) {} in TSpan()
125 constexpr TSpan(const TSpan &that) : mData(that.mData), mSize(that.mSize) {} in TSpan()
129 mSize = that.mSize;
136 TSpan(const TVector<S> &vec) : mData(vec.data()), mSize(vec.size()) in TSpan()
142 mSize = vec.size();
148 if (mSize != that.mSize)
158 for (size_type index = 0; index < mSize; ++index)
171 constexpr size_type size() const { return mSize; } in size()
172 constexpr bool empty() const { return mSize == 0; } in empty()
176 constexpr T &back() const { return mData[mSize - 1]; } in back()
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_wire/client/
DClientInlineMemoryTransferService.cpp28 : mStagingData(std::move(stagingData)), mSize(size) { in ReadHandleImpl()
52 if (offset > mSize || size > mSize - offset) { in DeserializeDataUpdate()
63 size_t mSize; member in dawn_wire::client::InlineMemoryTransferService::ReadHandleImpl
69 : mStagingData(std::move(stagingData)), mSize(size) { in WriteHandleImpl()
86 ASSERT(offset <= mSize); in SizeOfSerializeDataUpdate()
87 ASSERT(size <= mSize - offset); in SizeOfSerializeDataUpdate()
94 ASSERT(offset <= mSize); in SerializeDataUpdate()
95 ASSERT(size <= mSize - offset); in SerializeDataUpdate()
101 size_t mSize; member in dawn_wire::client::InlineMemoryTransferService::WriteHandleImpl
/third_party/skia/third_party/externals/dawn/src/dawn_native/
DBuffer.cpp132 mSize(descriptor->size), in BufferBase()
165 : ApiObjectBase(device, tag), mSize(descriptor->size), mState(BufferState::Unmapped) { in BufferBase()
169 mMapSize = mSize; in BufferBase()
188 } else if (mSize != 0) { in DestroyImpl()
206 return mSize; in GetSize()
226 if (mSize == 0) { in MapAtCreation()
255 mMapSize = mSize; in MapAtCreationInternal()
259 if (mSize != 0) { in MapAtCreationInternal()
322 if ((size == wgpu::kWholeMapSize) && (offset <= mSize)) { in APIMapAsync()
323 size = mSize - offset; in APIMapAsync()
[all …]
/third_party/skia/third_party/externals/oboe/src/common/
DFixedBlockWriter.cpp29 int32_t roomAvailable = mSize - mPosition; in writeToStorage()
47 if (mPosition == mSize) { in write()
48 bytesWritten = mFixedBlockProcessor.onProcessFixedBlock(mStorage.get(), mSize); in write()
51 if (bytesWritten < mSize) { in write()
59 while(bytesLeft > mSize) { in write()
60 int32_t bytesWritten = mFixedBlockProcessor.onProcessFixedBlock(buffer, mSize); in write()
DFixedBlockReader.cpp27 mPosition = mSize; in FixedBlockReader()
57 } else if (bytesLeft >= mSize) { in read()
59 bytesRead = mFixedBlockProcessor.onProcessFixedBlock(buffer, mSize); in read()
65 bytesRead = mFixedBlockProcessor.onProcessFixedBlock(mStorage.get(), mSize); in read()
/third_party/skia/third_party/externals/dawn/src/dawn_wire/
DBufferConsumer_impl.h28 if (sizeof(T) > mSize) { in Peek()
39 if (sizeof(T) > mSize) { in Next()
45 mSize -= sizeof(T); in Next()
61 if (totalSize > mSize) { in NextN()
67 mSize -= totalSize; in NextN()
DBufferConsumer.h35 BufferConsumer(BufferT* buffer, size_t size) : mBuffer(buffer), mSize(size) { in BufferConsumer()
42 return mSize; in AvailableSize()
57 size_t mSize; variable
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/
Dmtl_buffer_pool.mm31 mSize(0),
48 mSize = 0;
59 mSize = mBufferFreeList.front()->size();
69 if (IsError(buffer->resetWithSharedMemOpt(contextMtl, useSharedMem, mSize, nullptr)))
73 mSize = 0;
127 return mSize <= kSharedMemBufferMaxBufSizeHint;
163 Buffer::MakeBufferWithSharedMemOpt(contextMtl, useSharedMem, mSize, nullptr, &mBuffer));
185 checkedNextWriteOffset.ValueOrDie() >= mSize ||
194 if (sizeToAllocate > mSize)
196 mSize = std::max(mInitialSize, sizeToAllocate);
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d9/
DBuffer9.cpp18 : BufferD3D(state, renderer), mSize(0) in Buffer9()
23 mSize = 0; in ~Buffer9()
28 return mSize; in getSize()
47 mSize = size; in setData()
84 mSize = std::max(mSize, offset + size); in setSubData()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/egl/android/
DNativeBufferImageSiblingAndroid.cpp26 angle::android::ClientBufferToANativeWindowBuffer(mBuffer), &mSize.width, &mSize.height, in initialize()
27 &mSize.depth, &pixelFormat, &usage); in initialize()
62 return mSize; in getSize()
/third_party/skia/third_party/externals/angle2/src/libANGLE/
DCLBuffer.h58 return offset < mSize && offset + size <= mSize; in isRegionValid()
63 return region.origin < mSize && region.origin + region.size <= mSize; in isRegionValid()
DBlobCache.h68 Value() : mPtr(nullptr), mSize(0) {}
69 Value(const uint8_t *ptr, size_t sz) : mPtr(ptr), mSize(sz) {}
74 size_t size() { return mSize; }
78 ASSERT(pos < mSize);
84 size_t mSize;
DBuffer.cpp28 mSize(0), in BufferState()
141 mState.mSize = 0; in bufferDataImpl()
149 bool wholeBuffer = size == mState.mSize; in bufferDataImpl()
153 mState.mSize = size; in bufferDataImpl()
194 mState.mSize = 0; in bufferExternalDataImpl()
204 mState.mSize = size; in bufferExternalDataImpl()
261 mState.mMapLength = mState.mSize; in map()
278 ASSERT(offset + length <= mState.mSize); in mapRange()
359 return implSize > 0 ? implSize : mState.mSize; in getMemorySize()
DRefCountObject.h227 OffsetBindingPointer() : mOffset(0), mSize(0) {} in OffsetBindingPointer()
236 GLsizeiptr getSize() const { return mSize; } in getSize()
240 return this->get() == other.get() && mOffset == other.mOffset && mSize == other.mSize;
260 mSize = size; in updateOffsetAndSize()
265 mSize = 0; in updateOffsetAndSize()
274 GLsizeiptr mSize; variable
DCLMemory.cpp75 copyValue = &mSize; in getInfo()
76 copySize = sizeof(mSize); in getInfo()
164 mSize(size), in Memory()
181 mSize(size), in Memory()
200 mSize(mImpl ? mImpl->getSize(errorCode) : 0u), in Memory()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/egl/
DDmaBufImageSiblingEGL.cpp20 mSize.width = mAttribs.getAsInt(EGL_WIDTH); in DmaBufImageSiblingEGL()
22 mSize.height = mAttribs.getAsInt(EGL_HEIGHT); in DmaBufImageSiblingEGL()
23 mSize.depth = 1; in DmaBufImageSiblingEGL()
64 return mSize; in getSize()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/android/
DHardwareBufferImageSiblingVkAndroid.cpp208 angle::android::GetANativeWindowBufferProperties(windowBuffer, &mSize.width, &mSize.height, in initImpl()
209 &mSize.depth, &pixelFormat, &mUsage); in initImpl()
269 gl_vk::GetExtent(mSize, &vkExtents); in initImpl()
271 const uint32_t layerCount = mSize.depth; in initImpl()
406 return mSize; in getSize()
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/libGLESv2/
DContext.h167 …VertexAttribute() : mType(GL_FLOAT), mSize(4), mNormalized(false), mPureInteger(false), mStride(0)… in VertexAttribute()
180 case GL_BYTE: return mSize * sizeof(GLbyte); in typeSize()
181 case GL_UNSIGNED_BYTE: return mSize * sizeof(GLubyte); in typeSize()
182 case GL_SHORT: return mSize * sizeof(GLshort); in typeSize()
183 case GL_UNSIGNED_SHORT: return mSize * sizeof(GLushort); in typeSize()
184 case GL_INT: return mSize * sizeof(GLint); in typeSize()
185 case GL_UNSIGNED_INT: return mSize * sizeof(GLuint); in typeSize()
186 case GL_FIXED: return mSize * sizeof(GLfixed); in typeSize()
187 case GL_FLOAT: return mSize * sizeof(GLfloat); in typeSize()
189 case GL_HALF_FLOAT: return mSize * sizeof(GLhalf); in typeSize()
[all …]

1234