OLD | NEW |
---|---|
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2007 The Android Open Source Project | 3 * Copyright 2007 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #ifndef SkPicture_DEFINED | 10 #ifndef SkPicture_DEFINED |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
180 If false is returned, SkPictInfo is unmodified. | 180 If false is returned, SkPictInfo is unmodified. |
181 */ | 181 */ |
182 static bool InternalOnly_StreamIsSKP(SkStream*, SkPictInfo*); | 182 static bool InternalOnly_StreamIsSKP(SkStream*, SkPictInfo*); |
183 static bool InternalOnly_BufferIsSKP(SkReadBuffer&, SkPictInfo*); | 183 static bool InternalOnly_BufferIsSKP(SkReadBuffer&, SkPictInfo*); |
184 | 184 |
185 /** Return true if the picture is suitable for rendering on the GPU. | 185 /** Return true if the picture is suitable for rendering on the GPU. |
186 */ | 186 */ |
187 | 187 |
188 #if SK_SUPPORT_GPU | 188 #if SK_SUPPORT_GPU |
189 bool suitableForGpuRasterization(GrContext*, const char ** = NULL) const; | 189 bool suitableForGpuRasterization(GrContext*, const char ** = NULL) const; |
190 | |
191 bool suitableForOptimization() const; | |
bsalomon
2014/08/11 20:58:20
This seems really general. It's really about suita
robertphillips
2014/08/11 21:17:48
Right - we don't want the picture stats to be API-
| |
190 #endif | 192 #endif |
191 | 193 |
192 class DeletionListener : public SkRefCnt { | 194 class DeletionListener : public SkRefCnt { |
193 public: | 195 public: |
194 virtual void onDeletion(uint32_t pictureID) = 0; | 196 virtual void onDeletion(uint32_t pictureID) = 0; |
195 }; | 197 }; |
196 | 198 |
197 // Takes ref on listener. | 199 // Takes ref on listener. |
198 void addDeletionListener(DeletionListener* listener) const; | 200 void addDeletionListener(DeletionListener* listener) const; |
199 | 201 |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
290 | 292 |
291 // Takes ownership of the SkRecord, refs the (optional) BBH. | 293 // Takes ownership of the SkRecord, refs the (optional) BBH. |
292 SkPicture(int width, int height, SkRecord*, SkBBoxHierarchy*); | 294 SkPicture(int width, int height, SkRecord*, SkBBoxHierarchy*); |
293 | 295 |
294 SkAutoTDelete<SkRecord> fRecord; | 296 SkAutoTDelete<SkRecord> fRecord; |
295 SkAutoTUnref<SkBBoxHierarchy> fBBH; | 297 SkAutoTUnref<SkBBoxHierarchy> fBBH; |
296 bool fRecordWillPlayBackBitmaps; // TODO: const | 298 bool fRecordWillPlayBackBitmaps; // TODO: const |
297 }; | 299 }; |
298 | 300 |
299 #endif | 301 #endif |
OLD | NEW |