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

Side by Side Diff: include/utils/SkNWayCanvas.h

Issue 778563002: Revert "Change clear() to respect the clip" (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 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 unified diff | Download patch
« no previous file with comments | « include/utils/SkDeferredCanvas.h ('k') | src/core/SkBitmapDevice.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 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #ifndef SkNWayCanvas_DEFINED 9 #ifndef SkNWayCanvas_DEFINED
10 #define SkNWayCanvas_DEFINED 10 #define SkNWayCanvas_DEFINED
11 11
12 #include "SkCanvas.h" 12 #include "SkCanvas.h"
13 13
14 class SK_API SkNWayCanvas : public SkCanvas { 14 class SK_API SkNWayCanvas : public SkCanvas {
15 public: 15 public:
16 SkNWayCanvas(int width, int height); 16 SkNWayCanvas(int width, int height);
17 virtual ~SkNWayCanvas(); 17 virtual ~SkNWayCanvas();
18 18
19 virtual void addCanvas(SkCanvas*); 19 virtual void addCanvas(SkCanvas*);
20 virtual void removeCanvas(SkCanvas*); 20 virtual void removeCanvas(SkCanvas*);
21 virtual void removeAll(); 21 virtual void removeAll();
22 22
23 /////////////////////////////////////////////////////////////////////////// 23 ///////////////////////////////////////////////////////////////////////////
24 // These are forwarded to the N canvases we're referencing 24 // These are forwarded to the N canvases we're referencing
25 25
26 virtual void clear(SkColor) SK_OVERRIDE;
26 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE; 27 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE;
27 virtual void drawPoints(PointMode mode, size_t count, const SkPoint pts[], 28 virtual void drawPoints(PointMode mode, size_t count, const SkPoint pts[],
28 const SkPaint&) SK_OVERRIDE; 29 const SkPaint&) SK_OVERRIDE;
29 virtual void drawRect(const SkRect&, const SkPaint&) SK_OVERRIDE; 30 virtual void drawRect(const SkRect&, const SkPaint&) SK_OVERRIDE;
30 virtual void drawOval(const SkRect&, const SkPaint&) SK_OVERRIDE; 31 virtual void drawOval(const SkRect&, const SkPaint&) SK_OVERRIDE;
31 virtual void drawRRect(const SkRRect&, const SkPaint&) SK_OVERRIDE; 32 virtual void drawRRect(const SkRRect&, const SkPaint&) SK_OVERRIDE;
32 virtual void drawPath(const SkPath& path, const SkPaint&) SK_OVERRIDE; 33 virtual void drawPath(const SkPath& path, const SkPaint&) SK_OVERRIDE;
33 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, 34 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top,
34 const SkPaint*) SK_OVERRIDE; 35 const SkPaint*) SK_OVERRIDE;
35 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, 36 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src,
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint* ) SK_OVERRIDE; 94 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint* ) SK_OVERRIDE;
94 95
95 class Iter; 96 class Iter;
96 97
97 private: 98 private:
98 typedef SkCanvas INHERITED; 99 typedef SkCanvas INHERITED;
99 }; 100 };
100 101
101 102
102 #endif 103 #endif
OLDNEW
« no previous file with comments | « include/utils/SkDeferredCanvas.h ('k') | src/core/SkBitmapDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698