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

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

Issue 301423002: Add a way for the gpu veto to report back the reason why it said no (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 6 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
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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