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

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: 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') | 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 /* 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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 static bool InternalOnly_BufferIsSKP(SkReadBuffer&, SkPictInfo*); 220 static bool InternalOnly_BufferIsSKP(SkReadBuffer&, SkPictInfo*);
221 221
222 /** Enable/disable all the picture recording optimizations (i.e., 222 /** Enable/disable all the picture recording optimizations (i.e.,
223 those in SkPictureRecord). It is mainly intended for testing the 223 those in SkPictureRecord). It is mainly intended for testing the
224 existing optimizations (i.e., to actually have the pattern 224 existing optimizations (i.e., to actually have the pattern
225 appear in an .skp we have to disable the optimization). Call right 225 appear in an .skp we have to disable the optimization). Call right
226 after 'beginRecording'. 226 after 'beginRecording'.
227 */ 227 */
228 void internalOnly_EnableOpts(bool enableOpts); 228 void internalOnly_EnableOpts(bool enableOpts);
229 229
230 /** Return true if the picture is suitable for rendering on the GPU.
231 */
232
233 bool suitableForGpuRasterization() const;
nduca 2014/03/12 17:36:15 does this need to know the grcontext at some point
bsalomon 2014/03/12 17:43:23 Yes, we'll want to know the capabilities present t
234
230 protected: 235 protected:
231 // V2 : adds SkPixelRef's generation ID. 236 // V2 : adds SkPixelRef's generation ID.
232 // V3 : PictInfo tag at beginning, and EOF tag at the end 237 // V3 : PictInfo tag at beginning, and EOF tag at the end
233 // V4 : move SkPictInfo to be the header 238 // V4 : move SkPictInfo to be the header
234 // V5 : don't read/write FunctionPtr on cross-process (we can detect that) 239 // V5 : don't read/write FunctionPtr on cross-process (we can detect that)
235 // V6 : added serialization of SkPath's bounds (and packed its flags tighter ) 240 // V6 : added serialization of SkPath's bounds (and packed its flags tighter )
236 // V7 : changed drawBitmapRect(IRect) to drawBitmapRectToRect(Rect) 241 // V7 : changed drawBitmapRect(IRect) to drawBitmapRectToRect(Rect)
237 // V8 : Add an option for encoding bitmaps 242 // V8 : Add an option for encoding bitmaps
238 // V9 : Allow the reader and writer of an SKP disagree on whether to support 243 // V9 : Allow the reader and writer of an SKP disagree on whether to support
239 // SK_SUPPORT_HINTING_SCALE_FACTOR 244 // SK_SUPPORT_HINTING_SCALE_FACTOR
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 */ 299 */
295 class SK_API SkDrawPictureCallback { 300 class SK_API SkDrawPictureCallback {
296 public: 301 public:
297 SkDrawPictureCallback() {} 302 SkDrawPictureCallback() {}
298 virtual ~SkDrawPictureCallback() {} 303 virtual ~SkDrawPictureCallback() {}
299 304
300 virtual bool abortDrawing() = 0; 305 virtual bool abortDrawing() = 0;
301 }; 306 };
302 307
303 #endif 308 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkPicture.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698