HomeSort by relevance Sort by last modified time
    Searched refs:atlas (Results 1 - 25 of 38) sorted by null

1 2

  /frameworks/base/libs/hwui/tests/unit/
VectorDrawableAtlasTests.cpp 29 VectorDrawableAtlas atlas(100*100);
30 atlas.prepareForDraw(renderThread.getGrContext());
31 //create 150 rects 10x10, which won't fit in the atlas (atlas can fit no more than 100 rects)
38 //check that rects in the atlas do not intersect
40 VDRects[i] = atlas.requestNewEntry(10, 10, renderThread.getGrContext());
48 //nothing in the atlas should intersect
64 //first rect is using atlas and last is a standalone surface
69 auto VDRect = atlas.getEntry(VDRects[i].key);
74 atlas.releaseEntry(VDRect.key)
    [all...]
  /external/skia/experimental/GLFWTest/
glfw_main.cpp 79 sk_sp<SkImage> atlas; local
87 atlas.reset(SkImage::NewFromEncoded(imageData.get()));
88 if (!atlas) {
97 SkScalar anchorX = atlas->width()*0.5f;
98 SkScalar anchorY = atlas->height()*0.5f;
105 tex[currIndex] = SkRect::MakeLTRB(0.0f, 0.0f, atlas->width(), atlas->height());
111 tex[currIndex] = SkRect::MakeLTRB(0.0f, 0.0f, atlas->width(), atlas->height());
161 canvas->drawAtlas(atlas, xform, tex, nullptr, kGrid*kGrid+1, SkXfermode::kSrcOver_Mode
    [all...]
  /external/skia/src/gpu/ccpr/
GrCCPRPathProcessor.h 57 GrCCPRPathProcessor(GrResourceProvider*, sk_sp<GrTextureProxy> atlas, SkPath::FillType,
61 const GrTexture* atlas() const { return fAtlasAccess.peekTexture(); } function in class:GrCCPRPathProcessor
GrCoverageCountingPathRenderer.cpp 204 GrCCPRAtlas* atlas = nullptr; local
235 if (atlas && !atlas->addRect(w, h, &atlasLocation)) {
236 // The atlas is out of room and can't grow any bigger.
237 auto atlasOp = atlasOpsBuilder.createIntermediateOp(atlas->drawBounds());
238 if (auto rtc = atlas->finalize(onFlushRP, std::move(atlasOp))) {
242 op->addAtlasBatch(atlas, pathInstanceIdx);
244 atlas = nullptr;
247 if (!atlas) {
248 atlas = &fPerFlushAtlases.emplace_back(*onFlushRP->caps(), w, h)
    [all...]
GrCCPRPathProcessor.cpp 18 // accidentally reach into neighboring path masks within the atlas.
51 GrCCPRPathProcessor::GrCCPRPathProcessor(GrResourceProvider* rp, sk_sp<GrTextureProxy> atlas,
80 fAtlasAccess.reset(std::move(atlas), GrSamplerParams::FilterMode::kNone_FilterMode,
89 b->add32((fFillType << 16) | this->atlas()->origin());
100 pdman.set2f(fAtlasAdjustUniform, 1.0f / proc.atlas()->width(),
101 1.0f / proc.atlas()->height());
161 // Convert to atlas coordinates in order to do our texture lookup.
164 if (kTopLeft_GrSurfaceOrigin == proc.atlas()->origin()) {
167 SkASSERT(kBottomLeft_GrSurfaceOrigin == proc.atlas()->origin());
GrCoverageCountingPathRenderer.h 25 * flush, it compiles GPU buffers and renders a "coverage count atlas" for the upcoming paths.
49 // This is the Op that ultimately draws a path into its final destination, using the atlas we
94 void addAtlasBatch(const GrCCPRAtlas* atlas, int endInstanceIdx) {
98 fAtlasBatches.push_back() = {atlas, endInstanceIdx};
  /external/skia/src/gpu/effects/
GrBitmapTextGeoProc.cpp 34 SkDEBUGCODE(GrTexture* atlas = cte.textureSampler(0).peekTexture());
35 SkASSERT(atlas && SkIsPow2(atlas->width()) && SkIsPow2(atlas->height()));
99 // Currently we hardcode numbers to convert atlas coordinates to normalized floating point
101 GrTextureProxy* atlas = gp.textureSampler(0).proxy(); local
102 if (atlas) {
103 b->add32(atlas->width());
104 b->add32(atlas->height());
GrDistanceFieldGeoProc.cpp 87 GrTexture* atlas = dfTexEffect.textureSampler(0).peekTexture(); variable
88 SkASSERT(atlas && SkIsPow2(atlas->width()) && SkIsPow2(atlas->height()));
93 atlas->width(), atlas->height(),
207 // Currently we hardcode numbers to convert atlas coordinates to normalized floating point
209 GrTextureProxy* atlas = gp.textureSampler(0).proxy(); local
210 if (atlas) {
211 b->add32(atlas->width())
599 GrTexture* atlas = dfTexEffect.textureSampler(0).peekTexture(); variable
759 GrTextureProxy* atlas = gp.textureSampler(0).proxy(); local
    [all...]
  /external/skia/samplecode/
SampleLitAtlas.cpp 102 canvas->drawBitmap(fAtlas, 0, 0); // just to see the atlas
213 // Create the mixed diffuse & normal atlas
224 SkBitmap atlas; local
225 atlas.allocN32Pixels(kAtlasWidth, kAtlasHeight);
230 *atlas.getAddr32(x, y) = SK_ColorTRANSPARENT;
233 *atlas.getAddr32(x, y) = SkPackARGB32(0xFF, 0x88, 0x88, 0xFF);
246 *atlas.getAddr32(x, y) = SkPreMultiplyARGB(0, 0, 0, 0);
248 *atlas.getAddr32(x, y) = SkPackARGB32(0xFF, 0xFF, 0, 0);
253 sk_tool_utils::create_hemi_normal_map(&atlas,
262 *atlas.getAddr32(x, y) = SkPackARGB32(0xFF, 0, 0xFF, 0);
    [all...]
SampleShip.cpp 26 static void draw_atlas(SkCanvas* canvas, SkImage* atlas, const SkRSXform xform[],
29 canvas->drawAtlas(atlas, xform, tex, colors, count, SkBlendMode::kModulate, cull, paint);
32 static void draw_atlas_sim(SkCanvas* canvas, SkImage* atlas, const SkRSXform xform[],
41 canvas->drawImageRect(atlas, tex[i], tex[i].makeOffset(-tex[i].x(), -tex[i].y()), paint,
SampleAtlas.cpp 21 static void draw_atlas(SkCanvas* canvas, SkImage* atlas, const SkRSXform xform[],
24 canvas->drawAtlas(atlas, xform, tex, colors, count, SkBlendMode::kModulate, cull, paint);
27 static void draw_atlas_sim(SkCanvas* canvas, SkImage* atlas, const SkRSXform xform[],
36 canvas->drawImageRect(atlas, tex[i], tex[i].makeOffset(-tex[i].x(), -tex[i].y()), paint,
  /external/skia/src/gpu/ops/
GrSmallPathRenderer.cpp 144 const SkMatrix& viewMatrix, GrDrawOpAtlas* atlas,
148 return Helper::FactoryHelper<SmallPathOp>(std::move(paint), shape, viewMatrix, atlas,
154 const SkMatrix& viewMatrix, GrDrawOpAtlas* atlas, ShapeCache* shapeCache,
165 // only use distance fields on desktop and Android framework to save space in the atlas
184 fAtlas = atlas;
227 GrDrawOpAtlas* atlas = fAtlas; variable
237 this->color(), this->viewMatrix(), atlas->getProxy(), params, flags,
254 GrBitmapTextGeoProc::Make(this->color(), atlas->getProxy(), params,
321 if (nullptr == shapeData || !atlas->hasID(shapeData->fID)) {
333 atlas,
    [all...]
  /external/skia/src/effects/
SkTableColorFilter.cpp 334 const GrTextureStripAtlas* atlas() const { return fAtlas; } function in class:ColorTableEffect
345 GrTextureStripAtlas* atlas, int row, unsigned flags);
375 if (cte.atlas()) {
376 SkScalar yDelta = cte.atlas()->getNormalizedTexelHeight();
377 rgbaYValues[3] = cte.atlas()->getYOffset(cte.atlasRow()) + SK_ScalarHalf * yDelta;
451 GrTextureStripAtlas* atlas = GrTextureStripAtlas::GetAtlas(desc); local
452 int row = atlas->lockRow(bitmap);
455 atlas = nullptr;
459 proxy = atlas->asTextureProxyRef();
466 return sk_sp<GrFragmentProcessor>(new ColorTableEffect(std::move(proxy), atlas, row, flags))
    [all...]
  /external/mesa3d/src/mesa/main/
dlist.h 40 * Describes the location and size of a glBitmap image in a texture atlas.
51 * Describes a set of glBitmap display lists which live in a texture atlas.
59 bool complete; /**< Is the atlas ready to use? */
60 bool incomplete; /**< Did we fail to construct this atlas? */
74 struct gl_bitmap_atlas *atlas);
dlist.c 644 _mesa_delete_bitmap_atlas(struct gl_context *ctx, struct gl_bitmap_atlas *atlas)
646 if (atlas->texObj) {
647 ctx->Driver.DeleteTexture(ctx, atlas->texObj);
649 free(atlas->glyphs);
659 struct gl_bitmap_atlas *atlas; local
662 atlas = _mesa_HashLookup(ctx->Shared->BitmapAtlas, listBase);
663 return atlas;
668 * Create new bitmap atlas and insert into hash table.
673 struct gl_bitmap_atlas *atlas; local
678 atlas = calloc(1, sizeof(*atlas))
1128 struct gl_bitmap_atlas *atlas = (struct gl_bitmap_atlas *) data; local
9227 struct gl_bitmap_atlas *atlas = lookup_bitmap_atlas(ctx, list); local
9282 struct gl_bitmap_atlas *atlas = lookup_bitmap_atlas(ctx, base); local
9450 struct gl_bitmap_atlas *atlas; local
    [all...]
shared.c 146 * Callback for deleting a bitmap atlas. Called by _mesa_HashDeleteAll().
151 struct gl_bitmap_atlas *atlas = (struct gl_bitmap_atlas *) data; local
153 _mesa_delete_bitmap_atlas(ctx, atlas);
  /external/skia/gm/
drawatlas.cpp 24 // that drawAtlas draws a subset-region of the atlas.
46 return SkString("draw-atlas");
55 auto atlas = MakeAtlas(canvas, target); variable
92 canvas->drawAtlas(atlas.get(), xform, tex, N, nullptr, &paint);
94 canvas->drawAtlas(atlas.get(), xform, tex, colors, N, SkBlendMode::kSrcIn, nullptr, &paint);
192 * This GM produces a series of pairs of images (atlas | vertices).
drawatlascolor.cpp 14 // Create a square atlas of:
56 // and transparency in the atlas image
65 return SkString("draw-atlas-colors");
76 auto atlas = make_atlas(canvas, kAtlasSize); variable
151 canvas->drawAtlas(atlas.get(), xforms, rects, quadColors, numColors,
155 canvas->drawAtlas(atlas.get(), xforms, rects, quadColors, numColors,
  /frameworks/base/libs/hwui/
VectorDrawable.cpp 495 void Tree::updateCache(sp<skiapipeline::VectorDrawableAtlas>& atlas, GrContext* context) {
503 auto atlasEntry = atlas->requestNewEntry(scaledWidth, scaledHeight, context);
507 mCache.setAtlas(atlas, atlasEntry.key);
544 sp<skiapipeline::VectorDrawableAtlas> atlas = mAtlas.promote(); local
545 if (atlas.get() && mAtlasKey != INVALID_ATLAS_KEY) {
546 auto atlasEntry = atlas->getEntry(mAtlasKey);
573 // frame will be cached into the atlas.
  /external/skia/src/gpu/
GrDrawOpAtlas.cpp 41 // the atlas and assert that the width & height are powers of 2.
47 std::unique_ptr<GrDrawOpAtlas> atlas(
49 atlas->registerEvictionCallback(func, data);
50 return atlas;
209 // MDB TODO: this is currently fine since the atlas' proxy is always pre-instantiated.
288 // MDB TODO: this is currently fine since the atlas' proxy is always pre-instantiated.
  /external/skia/include/core/
SkCanvas.h     [all...]
  /frameworks/base/libs/hwui/pipeline/skia/
SkiaPipeline.cpp 187 sp<VectorDrawableAtlas> atlas = mRenderThread.cacheManager().acquireVectorDrawableAtlas(); local
189 atlas->prepareForDraw(grContext);
191 vd->updateCache(atlas, grContext);
  /external/skia/src/core/
SkLiteRecorder.cpp 187 void SkLiteRecorder::onDrawAtlas(const SkImage* atlas,
195 fDL->drawAtlas(atlas, xforms, texs, colors, count, bmode, cull, paint);
SkLiteDL.cpp 459 DrawAtlas(const SkImage* atlas, int count, SkBlendMode xfermode,
461 : atlas(sk_ref_sp(atlas)), count(count), xfermode(xfermode), has_colors(has_colors) {
465 sk_sp<const SkImage> atlas; member in struct:__anon30901::final
477 c->drawAtlas(atlas.get(), xforms, texs, colors, count, xfermode,
664 void SkLiteDL::drawAtlas(const SkImage* atlas, const SkRSXform xforms[], const SkRect texs[],
672 atlas, count, xfermode, cull, paint, colors != nullptr);
  /external/mesa3d/src/mesa/state_tracker/
st_cb_bitmap.c 189 bool atlas)
253 if (atlas)
683 const struct gl_bitmap_atlas *atlas,
688 struct st_texture_object *stObj = st_texture_object(atlas->texObj);
726 const struct gl_bitmap_glyph *g = &atlas->glyphs[ids[i]];

Completed in 359 milliseconds

1 2