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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 existing optimizations (i.e., to actually have the pattern | 289 existing optimizations (i.e., to actually have the pattern |
290 appear in an .skp we have to disable the optimization). Call right | 290 appear in an .skp we have to disable the optimization). Call right |
291 after 'beginRecording'. | 291 after 'beginRecording'. |
292 */ | 292 */ |
293 void internalOnly_EnableOpts(bool enableOpts); | 293 void internalOnly_EnableOpts(bool enableOpts); |
294 | 294 |
295 /** Return true if the picture is suitable for rendering on the GPU. | 295 /** Return true if the picture is suitable for rendering on the GPU. |
296 */ | 296 */ |
297 | 297 |
298 #if SK_SUPPORT_GPU | 298 #if SK_SUPPORT_GPU |
299 bool suitableForGpuRasterization(GrContext*) const; | 299 bool suitableForGpuRasterization(GrContext*, const char ** = NULL) const; |
300 #endif | 300 #endif |
301 | 301 |
302 protected: | 302 protected: |
303 // V2 : adds SkPixelRef's generation ID. | 303 // V2 : adds SkPixelRef's generation ID. |
304 // V3 : PictInfo tag at beginning, and EOF tag at the end | 304 // V3 : PictInfo tag at beginning, and EOF tag at the end |
305 // V4 : move SkPictInfo to be the header | 305 // V4 : move SkPictInfo to be the header |
306 // V5 : don't read/write FunctionPtr on cross-process (we can detect that) | 306 // V5 : don't read/write FunctionPtr on cross-process (we can detect that) |
307 // V6 : added serialization of SkPath's bounds (and packed its flags tighter
) | 307 // V6 : added serialization of SkPath's bounds (and packed its flags tighter
) |
308 // V7 : changed drawBitmapRect(IRect) to drawBitmapRectToRect(Rect) | 308 // V7 : changed drawBitmapRect(IRect) to drawBitmapRectToRect(Rect) |
309 // V8 : Add an option for encoding bitmaps | 309 // V8 : Add an option for encoding bitmaps |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
520 typedef SkRefCnt INHERITED; | 520 typedef SkRefCnt INHERITED; |
521 }; | 521 }; |
522 | 522 |
523 #endif | 523 #endif |
524 | 524 |
525 #ifdef SK_SUPPORT_LEGACY_PICTURE_HEADERS | 525 #ifdef SK_SUPPORT_LEGACY_PICTURE_HEADERS |
526 #include "SkPictureRecorder.h" | 526 #include "SkPictureRecorder.h" |
527 #endif | 527 #endif |
528 | 528 |
529 #endif | 529 #endif |
OLD | NEW |