blob: e8f0d5851f6a06f0bcee7f2bcb4c30b4d5b1c77e [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.com64aef2b2012-06-11 15:36:13 +000019 GrPath(GrGpu* gpu) : INHERITED(gpu) {}
20
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