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

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

Issue 851503003: Update from https://crrev.com/311076 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | « skia/config/SkUserConfig.h ('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/SkDrawPictureCallback.h" 10 #include "third_party/skia/include/core/SkDrawPictureCallback.h"
(...skipping 12 matching lines...) Expand all
23 // Returns true when a SkColor can be used to represent result. 23 // Returns true when a SkColor can be used to represent result.
24 bool GetColorIfSolid(SkColor* color) const; 24 bool GetColorIfSolid(SkColor* color) const;
25 25
26 void SetForceNotSolid(bool flag); 26 void SetForceNotSolid(bool flag);
27 void SetForceNotTransparent(bool flag); 27 void SetForceNotTransparent(bool flag);
28 28
29 // SkDrawPictureCallback override. 29 // SkDrawPictureCallback override.
30 bool abortDrawing() override; 30 bool abortDrawing() override;
31 31
32 // SkCanvas overrides. 32 // SkCanvas overrides.
33 void drawPaint(const SkPaint& paint) override; 33 void onDrawPaint(const SkPaint& paint) override;
34 void drawPoints(PointMode, 34 void onDrawPoints(PointMode,
35 size_t count, 35 size_t count,
36 const SkPoint pts[], 36 const SkPoint pts[],
37 const SkPaint&) override; 37 const SkPaint&) override;
38 void drawOval(const SkRect&, const SkPaint&) override; 38 void onDrawOval(const SkRect&, const SkPaint&) override;
39 void drawRect(const SkRect&, const SkPaint&) override; 39 void onDrawRect(const SkRect&, const SkPaint&) override;
40 void drawRRect(const SkRRect&, const SkPaint&) override; 40 void onDrawRRect(const SkRRect&, const SkPaint&) override;
41 void drawPath(const SkPath& path, const SkPaint&) override; 41 void onDrawPath(const SkPath& path, const SkPaint&) override;
42 void drawBitmap(const SkBitmap&, 42 void onDrawBitmap(const SkBitmap&,
43 SkScalar left, 43 SkScalar left,
44 SkScalar top, 44 SkScalar top,
45 const SkPaint* paint = NULL) override; 45 const SkPaint* paint = NULL) override;
46 void drawBitmapRectToRect(const SkBitmap&, 46 void onDrawBitmapRect(const SkBitmap&,
47 const SkRect* src, 47 const SkRect* src,
48 const SkRect& dst, 48 const SkRect& dst,
49 const SkPaint* paint, 49 const SkPaint* paint,
50 DrawBitmapRectFlags flags) override; 50 DrawBitmapRectFlags flags) override;
51 void drawBitmapNine(const SkBitmap& bitmap, 51 void onDrawBitmapNine(const SkBitmap& bitmap,
52 const SkIRect& center, 52 const SkIRect& center,
53 const SkRect& dst, 53 const SkRect& dst,
54 const SkPaint* paint = NULL) override; 54 const SkPaint* paint = NULL) override;
55 void drawSprite(const SkBitmap&, 55 void onDrawSprite(const SkBitmap&,
56 int left, 56 int left,
57 int top, 57 int top,
58 const SkPaint* paint = NULL) override; 58 const SkPaint* paint = NULL) override;
59 void drawVertices(VertexMode, 59 void onDrawVertices(VertexMode,
60 int vertexCount, 60 int vertexCount,
61 const SkPoint vertices[], 61 const SkPoint vertices[],
62 const SkPoint texs[], 62 const SkPoint texs[],
63 const SkColor colors[], 63 const SkColor colors[],
64 SkXfermode*, 64 SkXfermode*,
65 const uint16_t indices[], 65 const uint16_t indices[],
66 int indexCount, 66 int indexCount,
67 const SkPaint&) override; 67 const SkPaint&) override;
68 68
69 protected: 69 protected:
70 void willSave() override; 70 void willSave() override;
71 SaveLayerStrategy willSaveLayer(const SkRect*, 71 SaveLayerStrategy willSaveLayer(const SkRect*,
72 const SkPaint*, 72 const SkPaint*,
73 SaveFlags) override; 73 SaveFlags) override;
74 void willRestore() override; 74 void willRestore() override;
75 75
76 void onClipRect(const SkRect& rect, 76 void onClipRect(const SkRect& rect,
77 SkRegion::Op op, 77 SkRegion::Op op,
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 bool is_solid_color_; 125 bool is_solid_color_;
126 SkColor color_; 126 SkColor color_;
127 bool is_transparent_; 127 bool is_transparent_;
128 int draw_op_count_; 128 int draw_op_count_;
129 }; 129 };
130 130
131 } // namespace skia 131 } // namespace skia
132 132
133 #endif // SKIA_EXT_ANALYSIS_CANVAS_H_ 133 #endif // SKIA_EXT_ANALYSIS_CANVAS_H_
134 134
OLDNEW
« no previous file with comments | « skia/config/SkUserConfig.h ('k') | skia/ext/analysis_canvas.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698