blob: c7e7f92064b430b973b951fb891d095925b01f7e [file] [log] [blame]
bsalomon@google.com64aef2b2012-06-11 15:36:13 +00001/*
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"
commit-bot@chromium.orgfd03d4a2013-07-17 21:39:42 +000012#include "SkRect.h"
bsalomon@google.com64aef2b2012-06-11 15:36:13 +000013
14class GrPath : public GrResource {
15public:
robertphillips@google.com7fa18762012-09-11 13:02:31 +000016 SK_DECLARE_INST_COUNT(GrPath);
17
bsalomon@google.com72830222013-01-23 20:25:22 +000018 GrPath(GrGpu* gpu, bool isWrapped) : INHERITED(gpu, isWrapped) {}
bsalomon@google.com64aef2b2012-06-11 15:36:13 +000019
commit-bot@chromium.orgfd03d4a2013-07-17 21:39:42 +000020 const SkRect& getBounds() const { return fBounds; }
bsalomon@google.com64aef2b2012-06-11 15:36:13 +000021
22protected:
commit-bot@chromium.orgfd03d4a2013-07-17 21:39:42 +000023 SkRect fBounds;
bsalomon@google.com64aef2b2012-06-11 15:36:13 +000024
25private:
26 typedef GrResource INHERITED;
27};
28
29#endif