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

Unified Diff: src/core/SkRecords.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 | « src/core/SkRecorder.cpp ('k') | tools/dm_flags.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkRecords.cpp
diff --git a/src/core/SkRecords.cpp b/src/core/SkRecords.cpp
index d0a3ddbe10c9d9705ec6db77d149908ce82f974c..81dd92f9ef4d103ad9d2b6d0548f75d0ce64b0c6 100644
--- a/src/core/SkRecords.cpp
+++ b/src/core/SkRecords.cpp
@@ -9,15 +9,6 @@
#include "SkRecords.h"
namespace SkRecords {
- ImmutableBitmap::ImmutableBitmap(const SkBitmap& bitmap) {
- if (bitmap.isImmutable()) {
- fBitmap = bitmap;
- } else {
- bitmap.copyTo(&fBitmap);
- }
- fBitmap.setImmutable();
- }
-
PreCachedPath::PreCachedPath(const SkPath& path) : SkPath(path) {
this->updateBoundsCache();
#if 0 // Disabled to see if we ever really race on this. It costs time, chromium:496982.
« no previous file with comments | « src/core/SkRecorder.cpp ('k') | tools/dm_flags.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698