GrPath.h revision 64aef2bacd1f5c25ffd9347aabd6265c9b60c0f4
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    GrPath(GrGpu* gpu) : INHERITED(gpu) {}
18
19    const GrIRect& getBounds() const { return fBounds; }
20
21protected:
22    GrIRect fBounds;
23
24private:
25    typedef GrResource INHERITED;
26};
27
28#endif
29