1 /* 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" 12 #include "SkRect.h" 13 14 class GrPath : public GrResource { 15 public: 16 SK_DECLARE_INST_COUNT(GrPath); 17 18 GrPath(GrGpu* gpu, bool isWrapped) : INHERITED(gpu, isWrapped) {} 19 20 const SkRect& getBounds() const { return fBounds; } 21 22 protected: 23 SkRect fBounds; 24 25 private: 26 typedef GrResource INHERITED; 27 }; 28 29 #endif 30