diff options
author | 2014-02-17 15:28:00 +0000 | |
---|---|---|
committer | 2014-02-17 15:28:00 +0000 | |
commit | 19fafef9784fe7c644540ffd0ee9f6da1914a038 (patch) | |
tree | 65e421e62fa16ba2701692484e1708867100c6cf /src/core/SkPictureRecord.cpp | |
parent | 403f8d7a052269583175e945689824838e5e0ef4 (diff) |
change PictureRecord (and its private subclasses) to take size instead of device
BUG=skia:
R=mtklein@google.com, scroggo@google.com, reed@google.com
Author: reed@chromium.org
Review URL: https://codereview.chromium.org/168983003
git-svn-id: http://skia.googlecode.com/svn/trunk@13477 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkPictureRecord.cpp')
-rw-r--r-- | src/core/SkPictureRecord.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/SkPictureRecord.cpp b/src/core/SkPictureRecord.cpp index babf1e47f1..5890ac4bf0 100644 --- a/src/core/SkPictureRecord.cpp +++ b/src/core/SkPictureRecord.cpp @@ -28,8 +28,8 @@ static const uint32_t kSaveSize = 2 * kUInt32Size; static const uint32_t kSaveLayerNoBoundsSize = 4 * kUInt32Size; static const uint32_t kSaveLayerWithBoundsSize = 4 * kUInt32Size + sizeof(SkRect); -SkPictureRecord::SkPictureRecord(uint32_t flags, SkBaseDevice* device) - : INHERITED(device) +SkPictureRecord::SkPictureRecord(const SkISize& dimensions, uint32_t flags) + : INHERITED(dimensions.width(), dimensions.height()) , fBoundingHierarchy(NULL) , fStateTree(NULL) , fFlattenableHeap(HEAP_BLOCK_SIZE) |