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

Side by Side Diff: src/core/SkLayerInfo.h

Issue 1828433004: Revert of Delete SkImageDecoder (Closed) Base URL: https://skia.googlesource.com/skia.git@fix-animator
Patch Set: Created 4 years, 9 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 unified diff | Download patch
« no previous file with comments | « src/core/SkBigPicture.h ('k') | src/gpu/GrLayerCache.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2014 Google Inc. 2 * Copyright 2014 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkLayerInfo_DEFINED 8 #ifndef SkLayerInfo_DEFINED
9 #define SkLayerInfo_DEFINED 9 #define SkLayerInfo_DEFINED
10 10
11 #include "SkBigPicture.h" 11 #include "SkBigPicture.h"
12 #include "SkMatrix.h"
13 #include "SkPaint.h"
14 #include "SkTArray.h" 12 #include "SkTArray.h"
15 13
16 // This class stores information about the saveLayer/restore pairs found 14 // This class stores information about the saveLayer/restore pairs found
17 // within an SkPicture. It is used by Ganesh to perform layer hoisting. 15 // within an SkPicture. It is used by Ganesh to perform layer hoisting.
18 class SkLayerInfo : public SkBigPicture::AccelData { 16 class SkLayerInfo : public SkBigPicture::AccelData {
19 public: 17 public:
20 // Information about a given saveLayer/restore block in an SkPicture 18 // Information about a given saveLayer/restore block in an SkPicture
21 class BlockInfo { 19 class BlockInfo {
22 public: 20 public:
23 BlockInfo() : fPicture(nullptr), fPaint(nullptr), fKey(nullptr), fKeySiz e(0) {} 21 BlockInfo() : fPicture(nullptr), fPaint(nullptr), fKey(nullptr), fKeySiz e(0) {}
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 return fBlocks[index]; 76 return fBlocks[index];
79 } 77 }
80 78
81 private: 79 private:
82 SkTArray<BlockInfo, true> fBlocks; 80 SkTArray<BlockInfo, true> fBlocks;
83 81
84 typedef SkBigPicture::AccelData INHERITED; 82 typedef SkBigPicture::AccelData INHERITED;
85 }; 83 };
86 84
87 #endif // SkLayerInfo_DEFINED 85 #endif // SkLayerInfo_DEFINED
OLDNEW
« no previous file with comments | « src/core/SkBigPicture.h ('k') | src/gpu/GrLayerCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698