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

Side by Side Diff: include/core/SkPicture.h

Issue 197803002: stub for ganesh veto (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 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 | « no previous file | src/core/SkPicture.cpp » ('j') | src/core/SkPicture.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
11 #define SkPicture_DEFINED 11 #define SkPicture_DEFINED
12 12
13 #include "SkBitmap.h" 13 #include "SkBitmap.h"
14 #include "SkImageDecoder.h" 14 #include "SkImageDecoder.h"
15 #include "SkRefCnt.h" 15 #include "SkRefCnt.h"
16 16
17 #if SK_SUPPORT_GPU
18 class GrContext;
19 #endif
20
17 class SkBBoxHierarchy; 21 class SkBBoxHierarchy;
18 class SkCanvas; 22 class SkCanvas;
19 class SkDrawPictureCallback; 23 class SkDrawPictureCallback;
20 class SkData; 24 class SkData;
21 class SkPicturePlayback; 25 class SkPicturePlayback;
22 class SkPictureRecord; 26 class SkPictureRecord;
23 class SkStream; 27 class SkStream;
24 class SkWStream; 28 class SkWStream;
25 29
26 struct SkPictInfo; 30 struct SkPictInfo;
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 static bool InternalOnly_BufferIsSKP(SkReadBuffer&, SkPictInfo*); 257 static bool InternalOnly_BufferIsSKP(SkReadBuffer&, SkPictInfo*);
254 258
255 /** Enable/disable all the picture recording optimizations (i.e., 259 /** Enable/disable all the picture recording optimizations (i.e.,
256 those in SkPictureRecord). It is mainly intended for testing the 260 those in SkPictureRecord). It is mainly intended for testing the
257 existing optimizations (i.e., to actually have the pattern 261 existing optimizations (i.e., to actually have the pattern
258 appear in an .skp we have to disable the optimization). Call right 262 appear in an .skp we have to disable the optimization). Call right
259 after 'beginRecording'. 263 after 'beginRecording'.
260 */ 264 */
261 void internalOnly_EnableOpts(bool enableOpts); 265 void internalOnly_EnableOpts(bool enableOpts);
262 266
267 /** Return true if the picture is suitable for rendering on the GPU.
268 */
269
270 #if SK_SUPPORT_GPU
271 bool suitableForGpuRasterization(GrContext*) const;
272 #endif
273
263 protected: 274 protected:
264 // V2 : adds SkPixelRef's generation ID. 275 // V2 : adds SkPixelRef's generation ID.
265 // V3 : PictInfo tag at beginning, and EOF tag at the end 276 // V3 : PictInfo tag at beginning, and EOF tag at the end
266 // V4 : move SkPictInfo to be the header 277 // V4 : move SkPictInfo to be the header
267 // V5 : don't read/write FunctionPtr on cross-process (we can detect that) 278 // V5 : don't read/write FunctionPtr on cross-process (we can detect that)
268 // V6 : added serialization of SkPath's bounds (and packed its flags tighter ) 279 // V6 : added serialization of SkPath's bounds (and packed its flags tighter )
269 // V7 : changed drawBitmapRect(IRect) to drawBitmapRectToRect(Rect) 280 // V7 : changed drawBitmapRect(IRect) to drawBitmapRectToRect(Rect)
270 // V8 : Add an option for encoding bitmaps 281 // V8 : Add an option for encoding bitmaps
271 // V9 : Allow the reader and writer of an SKP disagree on whether to support 282 // V9 : Allow the reader and writer of an SKP disagree on whether to support
272 // SK_SUPPORT_HINTING_SCALE_FACTOR 283 // SK_SUPPORT_HINTING_SCALE_FACTOR
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 */ 370 */
360 class SK_API SkDrawPictureCallback { 371 class SK_API SkDrawPictureCallback {
361 public: 372 public:
362 SkDrawPictureCallback() {} 373 SkDrawPictureCallback() {}
363 virtual ~SkDrawPictureCallback() {} 374 virtual ~SkDrawPictureCallback() {}
364 375
365 virtual bool abortDrawing() = 0; 376 virtual bool abortDrawing() = 0;
366 }; 377 };
367 378
368 #endif 379 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkPicture.cpp » ('j') | src/core/SkPicture.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698