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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 mutable uint32_t fUniqueID; | 309 mutable uint32_t fUniqueID; |
310 | 310 |
311 // fPlayback, fRecord, fWidth & fHeight are protected to allow derived class
es to | 311 // fPlayback, fRecord, fWidth & fHeight are protected to allow derived class
es to |
312 // install their own SkPicturePlayback-derived players,SkPictureRecord-deriv
ed | 312 // install their own SkPicturePlayback-derived players,SkPictureRecord-deriv
ed |
313 // recorders and set the picture size | 313 // recorders and set the picture size |
314 SkPicturePlayback* fPlayback; | 314 SkPicturePlayback* fPlayback; |
315 SkPictureRecord* fRecord; | 315 SkPictureRecord* fRecord; |
316 int fWidth, fHeight; | 316 int fWidth, fHeight; |
317 const AccelData* fAccelData; | 317 const AccelData* fAccelData; |
318 | 318 |
| 319 //public: |
319 void needsNewGenID() { fUniqueID = SK_InvalidGenID; } | 320 void needsNewGenID() { fUniqueID = SK_InvalidGenID; } |
320 | 321 |
| 322 //protected: |
| 323 |
321 // Create a new SkPicture from an existing SkPicturePlayback. Ref count of | 324 // Create a new SkPicture from an existing SkPicturePlayback. Ref count of |
322 // playback is unchanged. | 325 // playback is unchanged. |
323 SkPicture(SkPicturePlayback*, int width, int height); | 326 SkPicture(SkPicturePlayback*, int width, int height); |
324 | 327 |
325 // For testing. Derived classes may instantiate an alternate | 328 // For testing. Derived classes may instantiate an alternate |
326 // SkBBoxHierarchy implementation | 329 // SkBBoxHierarchy implementation |
327 virtual SkBBoxHierarchy* createBBoxHierarchy() const; | 330 virtual SkBBoxHierarchy* createBBoxHierarchy() const; |
328 private: | 331 private: |
329 // An OperationList encapsulates a set of operation offsets into the picture
byte | 332 // An OperationList encapsulates a set of operation offsets into the picture
byte |
330 // stream along with the CTMs needed for those operation. | 333 // stream along with the CTMs needed for those operation. |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 */ | 388 */ |
386 class SK_API SkDrawPictureCallback { | 389 class SK_API SkDrawPictureCallback { |
387 public: | 390 public: |
388 SkDrawPictureCallback() {} | 391 SkDrawPictureCallback() {} |
389 virtual ~SkDrawPictureCallback() {} | 392 virtual ~SkDrawPictureCallback() {} |
390 | 393 |
391 virtual bool abortDrawing() = 0; | 394 virtual bool abortDrawing() = 0; |
392 }; | 395 }; |
393 | 396 |
394 #endif | 397 #endif |
OLD | NEW |