a8d7f0b13c
This paves the way for removing the 'fTile' parameter from SkPictureShader (although that should be a different CL). If we like this we could also move to providing an entire cull SkRect. R=reed@google.com, mtklein@google.com, fmalita@google.com, fmalita@chromium.org Author: robertphillips@google.com Review URL: https://codereview.chromium.org/513983002
24 lines
484 B
C++
24 lines
484 B
C++
/*
|
|
* Copyright 2014 Google Inc.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
#ifndef SkCanvasPriv_DEFINED
|
|
#define SkCanvasPriv_DEFINED
|
|
|
|
#include "SkCanvas.h"
|
|
|
|
class SkAutoCanvasMatrixPaint : SkNoncopyable {
|
|
public:
|
|
SkAutoCanvasMatrixPaint(SkCanvas*, const SkMatrix*, const SkPaint*, const SkRect& bounds);
|
|
~SkAutoCanvasMatrixPaint();
|
|
|
|
private:
|
|
SkCanvas* fCanvas;
|
|
int fSaveCount;
|
|
};
|
|
|
|
#endif
|