Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit

Permalink
Remove unused API
Browse files Browse the repository at this point in the history
Change-Id: Iddfe56c2c97ac27ccf446a3cbdbfa8ffde62d1e1
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/251772
Commit-Queue: Herb Derby <herb@google.com>
Reviewed-by: Herb Derby <herb@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>
  • Loading branch information
herbderby authored and Skia Commit-Bot committed Oct 30, 2019
1 parent 28ba528 commit e785c44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
4 changes: 4 additions & 0 deletions src/core/SkGlyphRunPainter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ void SkGlyphRunListPainter::drawForBitmapDevice(
const BitmapDevicePainter* bitmapDevice) {
ScopedBuffers _ = this->ensureBuffers(glyphRunList);

// TODO: fStrikeCache is only used for GPU, and some compilers complain about it during the no
// gpu build. Remove when SkGlyphRunListPainter is split into GPU and CPU version.
(void)fStrikeCache;

const SkPaint& runPaint = glyphRunList.paint();
// The bitmap blitters can only draw lcd text to a N32 bitmap in srcOver. Otherwise,
// convert the lcd text into A8 text. The props communicates this to the scaler.
Expand Down
14 changes: 0 additions & 14 deletions src/core/SkGlyphRunPainter.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,20 +103,6 @@ class SkGlyphRunListPainter {
// TODO: Remove once I can hoist ensureBuffers above the list for loop in all cases.
ScopedBuffers SK_WARN_UNUSED_RESULT ensureBuffers(const SkGlyphRun& glyphRun);

/**
* @param fARGBPositions in source space
* @param fARGBGlyphsIDs the glyphs to process
* @param fGlyphPos used as scratch space
* @param maxSourceGlyphDimension the longest dimension of any glyph as if all fARGBGlyphsIDs
* were drawn in source space (as if viewMatrix were identity)
*/
void processARGBFallback(SkScalar maxSourceGlyphDimension,
const SkPaint& runPaint,
const SkFont& runFont,
SkPoint origin,
const SkMatrix& viewMatrix,
SkGlyphRunPainterInterface* process);

// The props as on the actual device.
const SkSurfaceProps fDeviceProps;
// The props for when the bitmap device can't draw LCD text.
Expand Down

0 comments on commit e785c44

Please sign in to comment.