reed | d5fa1a4 | 2014-08-09 11:08:05 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2014 Google Inc. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
| 6 | */ |
| 7 | |
| 8 | #ifndef SkCanvasPriv_DEFINED |
| 9 | #define SkCanvasPriv_DEFINED |
| 10 | |
| 11 | #include "SkCanvas.h" |
| 12 | |
| 13 | class SkAutoCanvasMatrixPaint : SkNoncopyable { |
| 14 | public: |
robertphillips | a8d7f0b | 2014-08-29 08:03:56 -0700 | [diff] [blame] | 15 | SkAutoCanvasMatrixPaint(SkCanvas*, const SkMatrix*, const SkPaint*, const SkRect& bounds); |
reed | d5fa1a4 | 2014-08-09 11:08:05 -0700 | [diff] [blame] | 16 | ~SkAutoCanvasMatrixPaint(); |
| 17 | |
| 18 | private: |
| 19 | SkCanvas* fCanvas; |
| 20 | int fSaveCount; |
| 21 | }; |
| 22 | |
| 23 | #endif |