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

Side by Side Diff: gm/optimizations.cpp

Issue 243173002: Staging for cleanup of SkPicture-related headers (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Add crucial newline at end of file Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « gm/gmmain.cpp ('k') | gm/pathopsskpclip.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 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "gm.h" 8 #include "gm.h"
9 #include "SkDebugCanvas.h" 9 #include "SkDebugCanvas.h"
10 #include "SkPictureFlat.h" 10 #include "SkPictureFlat.h"
11 #include "SkPictureRecorder.h"
11 12
12 #define WARN(msg) \ 13 #define WARN(msg) \
13 SkDebugf("%s:%d: %s\n", __FILE__, __LINE__, msg); 14 SkDebugf("%s:%d: %s\n", __FILE__, __LINE__, msg);
14 15
15 // Do the commands in 'input' match the supplied pattern? Note: this is a pretty 16 // Do the commands in 'input' match the supplied pattern? Note: this is a pretty
16 // heavy-weight operation since we are drawing the picture into a debug canvas 17 // heavy-weight operation since we are drawing the picture into a debug canvas
17 // to extract the commands. 18 // to extract the commands.
18 static bool check_pattern(SkPicture& input, const SkTDArray<DrawType> &pattern) { 19 static bool check_pattern(SkPicture& input, const SkTDArray<DrawType> &pattern) {
19 SkDebugCanvas debugCanvas(input.width(), input.height()); 20 SkDebugCanvas debugCanvas(input.width(), input.height());
20 debugCanvas.setBounds(input.width(), input.height()); 21 debugCanvas.setBounds(input.width(), input.height());
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 } 408 }
408 409
409 SkBitmap fCheckerboard; 410 SkBitmap fCheckerboard;
410 411
411 typedef skiagm::GM INHERITED; 412 typedef skiagm::GM INHERITED;
412 }; 413 };
413 414
414 ////////////////////////////////////////////////////////////////////////////// 415 //////////////////////////////////////////////////////////////////////////////
415 416
416 DEF_GM( return new OptimizationsGM; ) 417 DEF_GM( return new OptimizationsGM; )
OLDNEW
« no previous file with comments | « gm/gmmain.cpp ('k') | gm/pathopsskpclip.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698