OLD | NEW |
1 | |
2 /* | 1 /* |
3 * Copyright 2010 Google Inc. | 2 * Copyright 2010 Google Inc. |
4 * | 3 * |
5 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
7 */ | 6 */ |
8 | 7 |
9 | |
10 | |
11 #ifndef GrRectanizer_DEFINED | 8 #ifndef GrRectanizer_DEFINED |
12 #define GrRectanizer_DEFINED | 9 #define GrRectanizer_DEFINED |
13 | 10 |
14 #include "GrRect.h" | 11 #include "GrPoint.h" |
15 | 12 |
16 class GrRectanizerPurgeListener { | 13 class GrRectanizerPurgeListener { |
17 public: | 14 public: |
18 virtual ~GrRectanizerPurgeListener() {} | 15 virtual ~GrRectanizerPurgeListener() {} |
19 | 16 |
20 virtual void notifyPurgeStrip(void*, int yCoord) = 0; | 17 virtual void notifyPurgeStrip(void*, int yCoord) = 0; |
21 }; | 18 }; |
22 | 19 |
23 class GrRectanizer { | 20 class GrRectanizer { |
24 public: | 21 public: |
(...skipping 20 matching lines...) Expand all Loading... |
45 * Our factory, which returns the subclass du jour | 42 * Our factory, which returns the subclass du jour |
46 */ | 43 */ |
47 static GrRectanizer* Factory(int width, int height); | 44 static GrRectanizer* Factory(int width, int height); |
48 | 45 |
49 private: | 46 private: |
50 int fWidth; | 47 int fWidth; |
51 int fHeight; | 48 int fHeight; |
52 }; | 49 }; |
53 | 50 |
54 #endif | 51 #endif |
OLD | NEW |