bsalomon@google.com | 64aef2b | 2012-06-11 15:36:13 +0000 | [diff] [blame] | 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 | |
| 15 | class GrPath : public GrResource { |
| 16 | public: |
robertphillips@google.com | 7fa1876 | 2012-09-11 13:02:31 +0000 | [diff] [blame^] | 17 | SK_DECLARE_INST_COUNT(GrPath); |
| 18 | |
bsalomon@google.com | 64aef2b | 2012-06-11 15:36:13 +0000 | [diff] [blame] | 19 | GrPath(GrGpu* gpu) : INHERITED(gpu) {} |
| 20 | |
bsalomon@google.com | ded4f4b | 2012-06-28 18:48:06 +0000 | [diff] [blame] | 21 | const GrRect& getBounds() const { return fBounds; } |
bsalomon@google.com | 64aef2b | 2012-06-11 15:36:13 +0000 | [diff] [blame] | 22 | |
| 23 | protected: |
bsalomon@google.com | ded4f4b | 2012-06-28 18:48:06 +0000 | [diff] [blame] | 24 | GrRect fBounds; |
bsalomon@google.com | 64aef2b | 2012-06-11 15:36:13 +0000 | [diff] [blame] | 25 | |
| 26 | private: |
| 27 | typedef GrResource INHERITED; |
| 28 | }; |
| 29 | |
| 30 | #endif |