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

Unified Diff: gm/optimizations.cpp

Issue 186813003: Refactor method used to disable peephole optimizations (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | include/core/SkPicture.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/optimizations.cpp
===================================================================
--- gm/optimizations.cpp (revision 13655)
+++ gm/optimizations.cpp (working copy)
@@ -82,8 +82,8 @@
SkPicture* result = new SkPicture;
// have to disable the optimizations while generating the picture
- SkCanvas* canvas = result->beginRecording(100, 100,
- SkPicture::kDisableRecordOptimizations_RecordingFlag);
+ SkCanvas* canvas = result->beginRecording(100, 100);
+ result->internalOnly_EnableOpts(false);
SkPaint saveLayerPaint;
saveLayerPaint.setColor(0xCC000000);
@@ -218,8 +218,8 @@
SkPicture* result = new SkPicture;
// have to disable the optimizations while generating the picture
- SkCanvas* canvas = result->beginRecording(100, 100,
- SkPicture::kDisableRecordOptimizations_RecordingFlag);
+ SkCanvas* canvas = result->beginRecording(100, 100);
+ result->internalOnly_EnableOpts(false);
SkPaint saveLayerPaint;
saveLayerPaint.setColor(0xCC000000);
« no previous file with comments | « no previous file | include/core/SkPicture.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698