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

Side by Side Diff: skia/ext/analysis_canvas.h

Issue 337163003: Switch to the new SkCanvas::willSave() API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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 | Annotate | Revision Log
« no previous file with comments | « content/renderer/skia_benchmarking_extension_unittest.cc ('k') | skia/ext/analysis_canvas.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SKIA_EXT_ANALYSIS_CANVAS_H_ 5 #ifndef SKIA_EXT_ANALYSIS_CANVAS_H_
6 #define SKIA_EXT_ANALYSIS_CANVAS_H_ 6 #define SKIA_EXT_ANALYSIS_CANVAS_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "third_party/skia/include/core/SkCanvas.h" 9 #include "third_party/skia/include/core/SkCanvas.h"
10 #include "third_party/skia/include/core/SkPicture.h" 10 #include "third_party/skia/include/core/SkPicture.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 int vertexCount, 63 int vertexCount,
64 const SkPoint vertices[], 64 const SkPoint vertices[],
65 const SkPoint texs[], 65 const SkPoint texs[],
66 const SkColor colors[], 66 const SkColor colors[],
67 SkXfermode*, 67 SkXfermode*,
68 const uint16_t indices[], 68 const uint16_t indices[],
69 int indexCount, 69 int indexCount,
70 const SkPaint&) OVERRIDE; 70 const SkPaint&) OVERRIDE;
71 71
72 protected: 72 protected:
73 virtual void willSave(SaveFlags) OVERRIDE; 73 virtual void willSave() OVERRIDE;
74 virtual SaveLayerStrategy willSaveLayer(const SkRect*, 74 virtual SaveLayerStrategy willSaveLayer(const SkRect*,
75 const SkPaint*, 75 const SkPaint*,
76 SaveFlags) OVERRIDE; 76 SaveFlags) OVERRIDE;
77 virtual void willRestore() OVERRIDE; 77 virtual void willRestore() OVERRIDE;
78 78
79 virtual void onClipRect(const SkRect& rect, 79 virtual void onClipRect(const SkRect& rect,
80 SkRegion::Op op, 80 SkRegion::Op op,
81 ClipEdgeStyle edge_style) OVERRIDE; 81 ClipEdgeStyle edge_style) OVERRIDE;
82 virtual void onClipRRect(const SkRRect& rrect, 82 virtual void onClipRRect(const SkRRect& rrect,
83 SkRegion::Op op, 83 SkRegion::Op op,
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 bool is_solid_color_; 121 bool is_solid_color_;
122 SkColor color_; 122 SkColor color_;
123 bool is_transparent_; 123 bool is_transparent_;
124 bool has_text_; 124 bool has_text_;
125 }; 125 };
126 126
127 } // namespace skia 127 } // namespace skia
128 128
129 #endif // SKIA_EXT_ANALYSIS_CANVAS_H_ 129 #endif // SKIA_EXT_ANALYSIS_CANVAS_H_
130 130
OLDNEW
« no previous file with comments | « content/renderer/skia_benchmarking_extension_unittest.cc ('k') | skia/ext/analysis_canvas.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698