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

Unified Diff: skia/ext/analysis_canvas.h

Issue 2548573004: Ensure conservative raster clipping for AnalysisCanvas (Closed)
Patch Set: Created 4 years 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 | skia/ext/analysis_canvas.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/analysis_canvas.h
diff --git a/skia/ext/analysis_canvas.h b/skia/ext/analysis_canvas.h
index ca2c31530ce578f57379e2c61eaadcab2fee8830..f13bfad4091990c614238c5381f09c4749336b19 100644
--- a/skia/ext/analysis_canvas.h
+++ b/skia/ext/analysis_canvas.h
@@ -9,8 +9,8 @@
#include <stdint.h>
#include "base/compiler_specific.h"
-#include "third_party/skia/include/core/SkCanvas.h"
#include "third_party/skia/include/core/SkPicture.h"
+#include "third_party/skia/include/utils/SkNoDrawCanvas.h"
namespace skia {
@@ -18,7 +18,8 @@ namespace skia {
// (specified as a clip rectangle) of an SkPicture as the picture is
// played back through it.
// To use: play a picture into the canvas, and then check result.
-class SK_API AnalysisCanvas : public SkCanvas, public SkPicture::AbortCallback {
+class SK_API AnalysisCanvas final : public SkNoDrawCanvas,
+ public SkPicture::AbortCallback {
public:
AnalysisCanvas(int width, int height);
~AnalysisCanvas() override;
@@ -125,7 +126,7 @@ class SK_API AnalysisCanvas : public SkCanvas, public SkPicture::AbortCallback {
void OnComplexClip();
private:
- typedef SkCanvas INHERITED;
+ typedef SkNoDrawCanvas INHERITED;
int saved_stack_size_;
int force_not_solid_stack_level_;
« no previous file with comments | « no previous file | skia/ext/analysis_canvas.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698