Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Unified Diff: src/core/SkRecordDraw.cpp

Issue 2185563003: turn bitmaps into images during recording (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: exlucde serialize bleed, remove ImmutableBitmap for records Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/private/SkRecords.h ('k') | src/core/SkRecorder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkRecordDraw.cpp
diff --git a/src/core/SkRecordDraw.cpp b/src/core/SkRecordDraw.cpp
index cdfce66bf5cbaea0895451d54e2251c7f4691092..6cb41efea809603b29856a3e2b4a7af9c5ba2145 100644
--- a/src/core/SkRecordDraw.cpp
+++ b/src/core/SkRecordDraw.cpp
@@ -92,16 +92,6 @@ DRAW(TranslateZ, SkCanvas::translateZ(r.z));
template <> void Draw::draw(const TranslateZ& r) { }
#endif
-DRAW(DrawBitmap, drawBitmap(r.bitmap.shallowCopy(), r.left, r.top, r.paint));
-DRAW(DrawBitmapNine, drawBitmapNine(r.bitmap.shallowCopy(), r.center, r.dst, r.paint));
-DRAW(DrawBitmapRect,
- legacy_drawBitmapRect(r.bitmap.shallowCopy(), r.src, r.dst, r.paint,
- SkCanvas::kStrict_SrcRectConstraint));
-DRAW(DrawBitmapRectFast,
- legacy_drawBitmapRect(r.bitmap.shallowCopy(), r.src, r.dst, r.paint,
- SkCanvas::kFast_SrcRectConstraint));
-DRAW(DrawBitmapRectFixedSize,
- legacy_drawBitmapRect(r.bitmap.shallowCopy(), &r.src, r.dst, &r.paint, r.constraint));
DRAW(DrawDRRect, drawDRRect(r.outer, r.inner, r.paint));
DRAW(DrawImage, drawImage(r.image, r.left, r.top, r.paint));
DRAW(DrawImageRect, legacy_drawImageRect(r.image, r.src, r.dst, r.paint, r.constraint));
@@ -424,24 +414,6 @@ private:
Bounds bounds(const DrawImageNine& op) const {
return this->adjustAndMap(op.dst, op.paint);
}
- Bounds bounds(const DrawBitmapRect& op) const {
- return this->adjustAndMap(op.dst, op.paint);
- }
- Bounds bounds(const DrawBitmapRectFast& op) const {
- return this->adjustAndMap(op.dst, op.paint);
- }
- Bounds bounds(const DrawBitmapRectFixedSize& op) const {
- return this->adjustAndMap(op.dst, &op.paint);
- }
- Bounds bounds(const DrawBitmapNine& op) const {
- return this->adjustAndMap(op.dst, op.paint);
- }
- Bounds bounds(const DrawBitmap& op) const {
- return this->adjustAndMap(
- SkRect::MakeXYWH(op.left, op.top, op.bitmap.width(), op.bitmap.height()),
- op.paint);
- }
-
Bounds bounds(const DrawPath& op) const {
return op.path.isInverseFillType() ? fCurrentClipBounds
: this->adjustAndMap(op.path.getBounds(), &op.paint);
« no previous file with comments | « include/private/SkRecords.h ('k') | src/core/SkRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698