blob: ad3a5c30e0a807e23f220470f66b8a559547849d [file] [log] [blame]
bsalomon@google.com64aef2b2012-06-11 15:36:13 +00001
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:
robertphillips@google.com7fa18762012-09-11 13:02:31 +000017 SK_DECLARE_INST_COUNT(GrPath);
18
bsalomon@google.com72830222013-01-23 20:25:22 +000019 GrPath(GrGpu* gpu, bool isWrapped) : INHERITED(gpu, isWrapped) {}
bsalomon@google.com64aef2b2012-06-11 15:36:13 +000020
bsalomon@google.comded4f4b2012-06-28 18:48:06 +000021 const GrRect& getBounds() const { return fBounds; }
bsalomon@google.com64aef2b2012-06-11 15:36:13 +000022
23protected:
bsalomon@google.comded4f4b2012-06-28 18:48:06 +000024 GrRect fBounds;
bsalomon@google.com64aef2b2012-06-11 15:36:13 +000025
26private:
27 typedef GrResource INHERITED;
28};
29
30#endif