diff options
Diffstat (limited to 'src/gpu/text/GrAtlasGlyphCache.h')
-rw-r--r-- | src/gpu/text/GrAtlasGlyphCache.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gpu/text/GrAtlasGlyphCache.h b/src/gpu/text/GrAtlasGlyphCache.h index 57b65baba2..9e97966952 100644 --- a/src/gpu/text/GrAtlasGlyphCache.h +++ b/src/gpu/text/GrAtlasGlyphCache.h @@ -126,12 +126,12 @@ public: void freeAll(); - // if texture returns nullptr, the client must not try to use other functions on the + // if getProxy returns nullptr, the client must not try to use other functions on the // GrAtlasGlyphCache which use the atlas. This function *must* be called first, before other // functions which use the atlas. - GrTexture* getTexture(GrMaskFormat format) { + sk_sp<GrTextureProxy> getProxy(GrMaskFormat format) { if (this->initAtlas(format)) { - return this->getAtlas(format)->getTexture(); + return this->getAtlas(format)->getProxy(); } return nullptr; } @@ -185,6 +185,8 @@ public: void setAtlasSizes_ForTesting(const GrDrawOpAtlasConfig configs[3]); + GrContext* context() const { return fContext; } + private: static GrPixelConfig MaskFormatToPixelConfig(GrMaskFormat format, const GrCaps& caps) { switch (format) { |