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: 17 SK_DECLARE_INST_COUNT(GrPath); 18 19 GrPath(GrGpu* gpu, bool isWrapped) : INHERITED(gpu, isWrapped) {} 20 21 const GrRect& getBounds() const { return fBounds; } 22 23 protected: 24 GrRect fBounds; 25 26 private: 27 typedef GrResource INHERITED; 28 }; 29 30 #endif 31