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

Side by Side Diff: src/core/SkPictureRecord.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 | « src/core/SkDevice.cpp ('k') | src/core/SkPictureRecord.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 2011 Google Inc. 2 * Copyright 2011 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 #ifndef SkPictureRecord_DEFINED 8 #ifndef SkPictureRecord_DEFINED
9 #define SkPictureRecord_DEFINED 9 #define SkPictureRecord_DEFINED
10 10
(...skipping 11 matching lines...) Expand all
22 small = (combined >> 24) & 0xFF; \ 22 small = (combined >> 24) & 0xFF; \
23 large = combined & MASK_24; 23 large = combined & MASK_24;
24 #define PACK_8_24(small, large) ((small << 24) | large) 24 #define PACK_8_24(small, large) ((small << 24) | large)
25 25
26 26
27 class SkPictureRecord : public SkCanvas { 27 class SkPictureRecord : public SkCanvas {
28 public: 28 public:
29 SkPictureRecord(const SkISize& dimensions, uint32_t recordFlags); 29 SkPictureRecord(const SkISize& dimensions, uint32_t recordFlags);
30 virtual ~SkPictureRecord(); 30 virtual ~SkPictureRecord();
31 31
32 virtual void clear(SkColor) SK_OVERRIDE;
32 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE; 33 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE;
33 virtual void drawPoints(PointMode, size_t count, const SkPoint pts[], 34 virtual void drawPoints(PointMode, size_t count, const SkPoint pts[],
34 const SkPaint&) SK_OVERRIDE; 35 const SkPaint&) SK_OVERRIDE;
35 virtual void drawOval(const SkRect&, const SkPaint&) SK_OVERRIDE; 36 virtual void drawOval(const SkRect&, const SkPaint&) SK_OVERRIDE;
36 virtual void drawRect(const SkRect&, const SkPaint&) SK_OVERRIDE; 37 virtual void drawRect(const SkRect&, const SkPaint&) SK_OVERRIDE;
37 virtual void drawRRect(const SkRRect&, const SkPaint&) SK_OVERRIDE; 38 virtual void drawRRect(const SkRRect&, const SkPaint&) SK_OVERRIDE;
38 virtual void drawPath(const SkPath& path, const SkPaint&) SK_OVERRIDE; 39 virtual void drawPath(const SkPath& path, const SkPaint&) SK_OVERRIDE;
39 virtual void drawBitmap(const SkBitmap&, SkScalar left, SkScalar top, 40 virtual void drawBitmap(const SkBitmap&, SkScalar left, SkScalar top,
40 const SkPaint*) SK_OVERRIDE; 41 const SkPaint*) SK_OVERRIDE;
41 virtual void drawBitmapRectToRect(const SkBitmap&, const SkRect* src, 42 virtual void drawBitmapRectToRect(const SkBitmap&, const SkRect* src,
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 245
245 uint32_t fRecordFlags; 246 uint32_t fRecordFlags;
246 int fInitialSaveCount; 247 int fInitialSaveCount;
247 248
248 friend class SkPictureData; // for SkPictureData's SkPictureRecord-based c onstructor 249 friend class SkPictureData; // for SkPictureData's SkPictureRecord-based c onstructor
249 250
250 typedef SkCanvas INHERITED; 251 typedef SkCanvas INHERITED;
251 }; 252 };
252 253
253 #endif 254 #endif
OLDNEW
« no previous file with comments | « src/core/SkDevice.cpp ('k') | src/core/SkPictureRecord.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698