Home
last modified time | relevance | path

Searched refs:fOffset (Results 1 – 25 of 90) sorted by relevance

1234

/external/skia/src/utils/
DSkFrontBufferedStream.cpp36 size_t fOffset; member in FrontBufferedStream
75 , fOffset(0) in FrontBufferedStream()
81 if (fOffset < fBufferedSoFar) { in isAtEnd()
92 if (fOffset <= fBufferSize) { in rewind()
93 fOffset = 0; in rewind()
100 SkASSERT(fOffset < fBufferedSoFar); in readFromBuffer()
104 const size_t bytesToCopy = SkTMin(size, fBufferedSoFar - fOffset); in readFromBuffer()
106 memcpy(dst, fBuffer + fOffset, bytesToCopy); in readFromBuffer()
111 fOffset += bytesToCopy; in readFromBuffer()
112 SkASSERT(fOffset <= fBufferedSoFar); in readFromBuffer()
[all …]
DSkShadowUtils.cpp127 SkVector fOffset; member
145 *translate = that.fOffset - fOffset; in isCompatible()
150 if (fOffset == that.fOffset) { in isCompatible()
511 factory.fOffset = SkVector::Make(zRatio * (center.fX - devLightPos.fX), in DrawShadow()
540 } else if (fabsf(factory.fOffset.fX) < umbraInsetX && in DrawShadow()
541 fabsf(factory.fOffset.fY) < umbraInsetY) { in DrawShadow()
544 } else if (factory.fOffset.fX > w - umbraInsetX || in DrawShadow()
545 factory.fOffset.fY > h - umbraInsetY) { in DrawShadow()
/external/skia/src/core/
DSkStream.cpp162 , fOffset(SkTMin(offset, fSize)) in SkFILEStream()
188 fOffset = 0; in close()
192 if (size > fSize - fOffset) { in read()
193 size = fSize - fOffset; in read()
197 bytesRead = sk_qread(fFILE.get(), buffer, size, fOffset); in read()
202 fOffset += bytesRead; in read()
207 if (fOffset == fSize) { in isAtEnd()
210 return fOffset >= sk_fgetsize(fFILE.get()); in isAtEnd()
215 fOffset = 0; in rewind()
225 return fOffset; in getPosition()
[all …]
DSkTextMapStateProc.h19 , fOffset(offset) in SkTextMapStateProc()
29 fOffset.set(offset.x() * fMatrix.getScaleX() + fMatrix.getTranslateX(), in SkTextMapStateProc()
54 SkPoint fOffset; // In kOnly* mode, this includes the matrix translation component. variable
61 fProc(fMatrix, pos[0] + fOffset.x(), pos[1] + fOffset.y(), loc); in operator()
64 loc->set(fScaleX * *pos + fOffset.x(), fOffset.y()); in operator()
67 loc->set(*pos + fOffset.x(), fOffset.y()); in operator()
72 fProc(fMatrix, *pos + fOffset.x(), fOffset.y(), loc); in operator()
DSkICC.cpp77 tables->fRed.fOffset = tables->fGreen.fOffset = tables->fBlue.fOffset = 0; in rawTransferFnData()
88 tables->fRed.fOffset = tables->fGreen.fOffset = tables->fBlue.fOffset = 0; in rawTransferFnData()
111 rgb[i].fOffset = offset; in rawTransferFnData()
128 rgb[i].fOffset = offset; in rawTransferFnData()
DSkColorSpace_Base.h38 size_t fOffset; member
42 return SkTAddOffset<const float>(base, sizeof(SkGammas) + fOffset); in table()
54 return this->fTable.fOffset == that.fTable.fOffset &&
DSkImageFilterCache.cpp41 : fKey(key), fImage(SkRef(image)), fOffset(offset) {} in Value()
45 SkIPoint fOffset; member
58 *offset = v->fOffset; in get()
/external/skia/src/gpu/
DGrXferProcessor.h60 DstTexture() { fOffset.set(0, 0); } in DstTexture()
67 : fTexture(SkSafeRef(texture)), fOffset(texture ? offset : SkIPoint{0, 0}) {} in DstTexture()
71 fOffset = other.fOffset;
76 return fTexture == that.fTexture && fOffset == that.fOffset;
80 const SkIPoint& offset() const { return fOffset; } in offset()
82 void setOffset(const SkIPoint& offset) { fOffset = offset; } in setOffset()
83 void setOffset(int ox, int oy) { fOffset.set(ox, oy); } in setOffset()
90 fOffset = {0, 0}; in setTexture()
96 SkIPoint fOffset; variable
DGrPrimitiveProcessor.h108 , fOffset(0) {} in Attribute()
112 , fOffset(SkAlign4(GrVertexAttribTypeSize(type))) in Attribute()
116 size_t fOffset; member
DGrDrawOpAtlas.cpp68 , fOffset(SkIPoint16::Make(fX * fWidth, fY * fHeight)) in Plot()
121 loc->fX += fOffset.fX; in addSubImage()
122 loc->fY += fOffset.fY; in addSubImage()
137 writePixels(texture, fOffset.fX + fDirtyRect.fLeft, fOffset.fY + fDirtyRect.fTop, in uploadToTexture()
/external/skia/src/pdf/
DSkJpegInfo.cpp17 , fOffset(0) in JpegSegment()
32 if (fOffset + fLength > fSize) { in read()
35 fBuffer = &fData[fOffset]; in read()
36 fOffset += fLength; in read()
57 size_t fOffset; member in __anon309d4a090111::JpegSegment
63 if (fOffset + 2 > fSize) { in readBigendianUint16()
66 *value = JpegSegment::GetBigendianUint16(&fData[fOffset]); in readBigendianUint16()
67 fOffset += 2; in readBigendianUint16()
/external/skia/src/gpu/vk/
DGrVkMemory.cpp113 alloc->fMemory, alloc->fOffset)); in AllocAndBindBufferMemory()
201 alloc->fMemory, alloc->fOffset)); in AllocAndBindImageMemory()
293 mappedMemoryRange.offset = alloc.fOffset; in FlushMappedAlloc()
306 mappedMemoryRange.offset = alloc.fOffset; in InvalidateMappedAlloc()
326 SkASSERT(align_size(block->fOffset, fAlignment) - block->fOffset == 0); in alloc()
331 if (secondLargestSize < block->fSize && block->fOffset != fLargestBlockOffset) { in alloc()
333 secondLargestOffset = block->fOffset; in alloc()
341 SkASSERT(align_size(bestFit->fOffset, fAlignment) == bestFit->fOffset); in alloc()
342 *allocOffset = bestFit->fOffset; in alloc()
345 VkDeviceSize originalBestFitOffset = bestFit->fOffset; in alloc()
[all …]
DGrVkBuffer.h33 VkDeviceSize offset() const { return fOffset; } in offset()
84 : fDesc(desc), fResource(resource), fOffset(0), fMapPtr(nullptr) { in GrVkBuffer()
115 VkDeviceSize fOffset; variable
/external/skia/src/effects/
DSkOffsetImageFilter.cpp38 ctx.ctm().mapVectors(&vec, &fOffset, 1); in onFilterImage()
78 bounds.offset(fOffset.fX, fOffset.fY); in computeFastBounds()
85 ctm.mapVectors(&vec, &fOffset, 1); in onFilterNodeBounds()
102 buffer.writePoint(fOffset); in flatten()
109 fOffset.set(dx, dy); in SkOffsetImageFilter()
115 str->appendf("offset: (%f, %f) ", fOffset.fX, fOffset.fY); in toString()
DSkLayerRasterizer.cpp24 SkVector fOffset; member
73 m.preTranslate(rec->fOffset.fX, rec->fOffset.fY); in compute_bounds()
139 drawMatrix.preTranslate(rec->fOffset.fX, rec->fOffset.fY); in onRasterize()
159 buffer.readPoint(&rec->fOffset); in ReadLayers()
175 buffer.writePoint(rec->fOffset); in flatten()
194 rec->fOffset.set(dx, dy); in addLayer()
221 recCopy->fOffset = recOrig->fOffset; in snapshot()
DSkLayerDrawLooper.cpp23 fOffset.set(0, 0); in LayerInfo()
155 postTranslate(canvas, fCurrRec->fInfo.fOffset.fX, in next()
156 fCurrRec->fInfo.fOffset.fY); in next()
158 canvas->translate(fCurrRec->fInfo.fOffset.fX, in next()
159 fCurrRec->fInfo.fOffset.fY); in next()
196 if (!rec->fInfo.fOffset.equals(0, 0)) { in asABlurShadow()
202 bsRec->fOffset = fRecs->fInfo.fOffset; in asABlurShadow()
253 buffer.writePoint(rec->fInfo.fOffset); in flatten()
271 buffer.readPoint(&info.fOffset); in CreateProc()
318 str->appendScalar(rec->fInfo.fOffset.fX); in toString()
[all …]
/external/skia/src/gpu/ops/
DGrShadowRRectOp.cpp170 SkPoint fOffset; in onPrepareDraws() member
224 ov0->fOffset = SkPoint::Make(-octOffset, -1); in onPrepareDraws()
230 ov1->fOffset = SkPoint::Make(octOffset, -1); in onPrepareDraws()
236 ov2->fOffset = SkPoint::Make(1, -octOffset); in onPrepareDraws()
242 ov3->fOffset = SkPoint::Make(1, octOffset); in onPrepareDraws()
248 ov4->fOffset = SkPoint::Make(octOffset, 1); in onPrepareDraws()
254 ov5->fOffset = SkPoint::Make(-octOffset, 1); in onPrepareDraws()
260 ov6->fOffset = SkPoint::Make(-1, octOffset); in onPrepareDraws()
266 ov7->fOffset = SkPoint::Make(-1, -octOffset); in onPrepareDraws()
288 iv0->fOffset = SkPoint::Make(-s * innerRadius, -c * innerRadius); in onPrepareDraws()
[all …]
DGrOvalOpFactory.cpp35 SkPoint fOffset; member
834 SkPoint fOffset; in onPrepareDraws() member
892 v0->fOffset = SkPoint::Make(-octOffset, -1); in onPrepareDraws()
898 v1->fOffset = SkPoint::Make(octOffset, -1); in onPrepareDraws()
904 v2->fOffset = SkPoint::Make(1, -octOffset); in onPrepareDraws()
910 v3->fOffset = SkPoint::Make(1, octOffset); in onPrepareDraws()
916 v4->fOffset = SkPoint::Make(octOffset, 1); in onPrepareDraws()
922 v5->fOffset = SkPoint::Make(-octOffset, 1); in onPrepareDraws()
928 v6->fOffset = SkPoint::Make(-1, octOffset); in onPrepareDraws()
934 v7->fOffset = SkPoint::Make(-1, -octOffset); in onPrepareDraws()
[all …]
/external/skia/src/sksl/ir/
DSkSLLayout.h96 , fOffset(offset) in Layout()
113 , fOffset(-1) in Layout()
135 if (fOffset >= 0) { in description()
136 result += separator + "offset = " + to_string(fOffset); in description()
227 fOffset == other.fOffset &&
247 int fOffset; member
/external/skia/include/core/
DSkICC.h74 size_t fOffset; member
83 return (const float*) (fStorage->bytes() + fRed.fOffset); in red()
86 return (const float*) (fStorage->bytes() + fGreen.fOffset); in green()
89 return (const float*) (fStorage->bytes() + fBlue.fOffset); in blue()
/external/skia/gm/
Ddrawlooper.cpp59 SkScalar fOffset; in init() member
75 info.fOffset.set(gParams[i].fOffset, gParams[i].fOffset); in init()
/external/skia/samplecode/
DSampleShadowing.cpp43 fSliders[0].fOffset = 0.0f; in ShadowingView()
47 fSliders[1].fOffset = 0.0f; in ShadowingView()
51 fSliders[2].fOffset = 0.0f; in ShadowingView()
176 fSliders[fSelectedSliderID].fOffset; in updateFromSelectedSlider()
283 SkScalar fOffset; member
/external/dng_sdk/source/
Ddng_gain_map.cpp36 dng_point_real64 fOffset; member in dng_gain_map_interpolator
106 , fOffset (0.5 - mapBounds.t, in dng_gain_map_interpolator()
124 real64 rowIndexF = (fScale.v * (row + fOffset.v) - in dng_gain_map_interpolator()
190 real64 colIndexF = ((fScale.h * (fColumn + fOffset.h)) - in ResetColumn()
200 fResetColumn = (int32) ceil (fMap.Origin ().h / fScale.h - fOffset.h); in ResetColumn()
240 fMap.Origin ().h) / fScale.h - fOffset.h); in ResetColumn()
/external/skia/experimental/svg/model/
DSkSVGStop.h23 const SkSVGLength& offset() const { return fOffset; } in offset()
37 SkSVGLength fOffset = SkSVGLength(0 , SkSVGLength::Unit::kPercentage); variable
/external/skia/tests/
DLayerRasterizerTest.cpp77 SkVector fOffset; member
81 return rec1.fPaint == rec2.fPaint && rec1.fOffset == rec2.fOffset; in equals()

1234