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

Side by Side Diff: src/core/SkPictureRecord.h

Issue 169023002: still trying to kill setDevice: rename to setRootDevice (better name) and make private (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 10 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
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 18 matching lines...) Expand all
29 small = (combined >> 24) & 0xFF; \ 29 small = (combined >> 24) & 0xFF; \
30 large = combined & MASK_24; 30 large = combined & MASK_24;
31 #define PACK_8_24(small, large) ((small << 24) | large) 31 #define PACK_8_24(small, large) ((small << 24) | large)
32 32
33 33
34 class SkPictureRecord : public SkCanvas { 34 class SkPictureRecord : public SkCanvas {
35 public: 35 public:
36 SkPictureRecord(uint32_t recordFlags, SkBaseDevice*); 36 SkPictureRecord(uint32_t recordFlags, SkBaseDevice*);
37 virtual ~SkPictureRecord(); 37 virtual ~SkPictureRecord();
38 38
39 virtual SkBaseDevice* setDevice(SkBaseDevice* device) SK_OVERRIDE;
40
41 virtual int save(SaveFlags) SK_OVERRIDE; 39 virtual int save(SaveFlags) SK_OVERRIDE;
42 virtual int saveLayer(const SkRect* bounds, const SkPaint*, SaveFlags) SK_OV ERRIDE; 40 virtual int saveLayer(const SkRect* bounds, const SkPaint*, SaveFlags) SK_OV ERRIDE;
43 virtual void restore() SK_OVERRIDE; 41 virtual void restore() SK_OVERRIDE;
44 virtual bool translate(SkScalar dx, SkScalar dy) SK_OVERRIDE; 42 virtual bool translate(SkScalar dx, SkScalar dy) SK_OVERRIDE;
45 virtual bool scale(SkScalar sx, SkScalar sy) SK_OVERRIDE; 43 virtual bool scale(SkScalar sx, SkScalar sy) SK_OVERRIDE;
46 virtual bool rotate(SkScalar degrees) SK_OVERRIDE; 44 virtual bool rotate(SkScalar degrees) SK_OVERRIDE;
47 virtual bool skew(SkScalar sx, SkScalar sy) SK_OVERRIDE; 45 virtual bool skew(SkScalar sx, SkScalar sy) SK_OVERRIDE;
48 virtual bool concat(const SkMatrix& matrix) SK_OVERRIDE; 46 virtual bool concat(const SkMatrix& matrix) SK_OVERRIDE;
49 virtual void setMatrix(const SkMatrix& matrix) SK_OVERRIDE; 47 virtual void setMatrix(const SkMatrix& matrix) SK_OVERRIDE;
50 virtual bool clipRect(const SkRect&, SkRegion::Op, bool) SK_OVERRIDE; 48 virtual bool clipRect(const SkRect&, SkRegion::Op, bool) SK_OVERRIDE;
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 friend class SkPictureTester; // for unit testing 287 friend class SkPictureTester; // for unit testing
290 288
291 #ifdef SK_COLLAPSE_MATRIX_CLIP_STATE 289 #ifdef SK_COLLAPSE_MATRIX_CLIP_STATE
292 SkMatrixClipStateMgr fMCMgr; 290 SkMatrixClipStateMgr fMCMgr;
293 #endif 291 #endif
294 292
295 typedef SkCanvas INHERITED; 293 typedef SkCanvas INHERITED;
296 }; 294 };
297 295
298 #endif 296 #endif
OLDNEW
« no previous file with comments | « src/core/SkCanvas.cpp ('k') | src/core/SkPictureRecord.cpp » ('j') | src/pipe/SkGPipeWrite.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698