GrPath.h revision fd03d4a829efe2d77a712fd991927c55f59a2ffe
1/*
2 * Copyright 2012 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 GrPath_DEFINED
9#define GrPath_DEFINED
10
11#include "GrResource.h"
12#include "SkRect.h"
13
14class GrPath : public GrResource {
15public:
16    SK_DECLARE_INST_COUNT(GrPath);
17
18    GrPath(GrGpu* gpu, bool isWrapped) : INHERITED(gpu, isWrapped) {}
19
20    const SkRect& getBounds() const { return fBounds; }
21
22protected:
23    SkRect fBounds;
24
25private:
26    typedef GrResource INHERITED;
27};
28
29#endif
30