GrPath.h revision 7fa18762e0ab64c3473df3aab0c2bfd6fabd8831
164aef2bacd1f5c25ffd9347aabd6265c9b60c0f4bsalomon@google.com
264aef2bacd1f5c25ffd9347aabd6265c9b60c0f4bsalomon@google.com/*
364aef2bacd1f5c25ffd9347aabd6265c9b60c0f4bsalomon@google.com * Copyright 2012 Google Inc.
464aef2bacd1f5c25ffd9347aabd6265c9b60c0f4bsalomon@google.com *
564aef2bacd1f5c25ffd9347aabd6265c9b60c0f4bsalomon@google.com * Use of this source code is governed by a BSD-style license that can be
664aef2bacd1f5c25ffd9347aabd6265c9b60c0f4bsalomon@google.com * found in the LICENSE file.
764aef2bacd1f5c25ffd9347aabd6265c9b60c0f4bsalomon@google.com */
864aef2bacd1f5c25ffd9347aabd6265c9b60c0f4bsalomon@google.com
964aef2bacd1f5c25ffd9347aabd6265c9b60c0f4bsalomon@google.com#ifndef GrPath_DEFINED
1064aef2bacd1f5c25ffd9347aabd6265c9b60c0f4bsalomon@google.com#define GrPath_DEFINED
1164aef2bacd1f5c25ffd9347aabd6265c9b60c0f4bsalomon@google.com
1264aef2bacd1f5c25ffd9347aabd6265c9b60c0f4bsalomon@google.com#include "GrResource.h"
1364aef2bacd1f5c25ffd9347aabd6265c9b60c0f4bsalomon@google.com#include "GrRect.h"
1464aef2bacd1f5c25ffd9347aabd6265c9b60c0f4bsalomon@google.com
1564aef2bacd1f5c25ffd9347aabd6265c9b60c0f4bsalomon@google.comclass GrPath : public GrResource {
1664aef2bacd1f5c25ffd9347aabd6265c9b60c0f4bsalomon@google.compublic:
177fa18762e0ab64c3473df3aab0c2bfd6fabd8831robertphillips@google.com    SK_DECLARE_INST_COUNT(GrPath);
187fa18762e0ab64c3473df3aab0c2bfd6fabd8831robertphillips@google.com
1964aef2bacd1f5c25ffd9347aabd6265c9b60c0f4bsalomon@google.com    GrPath(GrGpu* gpu) : INHERITED(gpu) {}
2064aef2bacd1f5c25ffd9347aabd6265c9b60c0f4bsalomon@google.com
21ded4f4b163f5aa19c22c871178c55ecb34623846bsalomon@google.com    const GrRect& getBounds() const { return fBounds; }
2264aef2bacd1f5c25ffd9347aabd6265c9b60c0f4bsalomon@google.com
2364aef2bacd1f5c25ffd9347aabd6265c9b60c0f4bsalomon@google.comprotected:
24ded4f4b163f5aa19c22c871178c55ecb34623846bsalomon@google.com    GrRect fBounds;
2564aef2bacd1f5c25ffd9347aabd6265c9b60c0f4bsalomon@google.com
2664aef2bacd1f5c25ffd9347aabd6265c9b60c0f4bsalomon@google.comprivate:
2764aef2bacd1f5c25ffd9347aabd6265c9b60c0f4bsalomon@google.com    typedef GrResource INHERITED;
2864aef2bacd1f5c25ffd9347aabd6265c9b60c0f4bsalomon@google.com};
2964aef2bacd1f5c25ffd9347aabd6265c9b60c0f4bsalomon@google.com
3064aef2bacd1f5c25ffd9347aabd6265c9b60c0f4bsalomon@google.com#endif
31