GrPath.h revision 728302281920727b96e6cec0bfc7575900f34a8b
1
2/*
3 * Copyright 2012 Google Inc.
4 *
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
7 */
8
9#ifndef GrPath_DEFINED
10#define GrPath_DEFINED
11
12#include "GrResource.h"
13#include "GrRect.h"
14
15class GrPath : public GrResource {
16public:
17    SK_DECLARE_INST_COUNT(GrPath);
18
19    GrPath(GrGpu* gpu, bool isWrapped) : INHERITED(gpu, isWrapped) {}
20
21    const GrRect& getBounds() const { return fBounds; }
22
23protected:
24    GrRect fBounds;
25
26private:
27    typedef GrResource INHERITED;
28};
29
30#endif
31