OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
3 * | 3 * |
4 * 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 |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkGatherPixelRefsAndRects_DEFINED | 8 #ifndef SkGatherPixelRefsAndRects_DEFINED |
9 #define SkGatherPixelRefsAndRects_DEFINED | 9 #define SkGatherPixelRefsAndRects_DEFINED |
10 | 10 |
11 #include "SkBitmap.h" | 11 #include "SkBitmap.h" |
12 #include "SkDevice.h" | 12 #include "SkDevice.h" |
13 #include "SkDraw.h" | 13 #include "SkDraw.h" |
14 #include "SkPictureUtils.h" | 14 #include "SkPictureUtils.h" |
15 #include "SkRasterClip.h" | 15 #include "SkRasterClip.h" |
16 #include "SkRefCnt.h" | 16 #include "SkRefCnt.h" |
17 #include "SkRRect.h" | 17 #include "SkRRect.h" |
18 #include "SkTypes.h" | 18 #include "SkShader.h" |
19 | 19 |
20 // This GatherPixelRefs device passes all discovered pixel refs and their | 20 // This GatherPixelRefs device passes all discovered pixel refs and their |
21 // device bounds to the user provided SkPixelRefContainer-derived object | 21 // device bounds to the user provided SkPixelRefContainer-derived object |
22 class SkGatherPixelRefsAndRectsDevice : public SkBaseDevice { | 22 class SkGatherPixelRefsAndRectsDevice : public SkBaseDevice { |
23 public: | 23 public: |
24 SK_DECLARE_INST_COUNT(SkGatherPixelRefsAndRectsDevice) | 24 SK_DECLARE_INST_COUNT(SkGatherPixelRefsAndRectsDevice) |
25 | 25 |
26 SkGatherPixelRefsAndRectsDevice(int width, int height, | 26 SkGatherPixelRefsAndRectsDevice(int width, int height, |
27 SkPictureUtils::SkPixelRefContainer* prCont)
{ | 27 SkPictureUtils::SkPixelRefContainer* prCont)
{ |
28 fSize.set(width, height); | 28 fSize.set(width, height); |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 static void NotSupported() { | 340 static void NotSupported() { |
341 SkDEBUGFAIL("this method should never be called"); | 341 SkDEBUGFAIL("this method should never be called"); |
342 } | 342 } |
343 | 343 |
344 static void NothingToDo() {} | 344 static void NothingToDo() {} |
345 | 345 |
346 typedef SkBaseDevice INHERITED; | 346 typedef SkBaseDevice INHERITED; |
347 }; | 347 }; |
348 | 348 |
349 #endif // SkGatherPixelRefsAndRects_DEFINED | 349 #endif // SkGatherPixelRefsAndRects_DEFINED |
OLD | NEW |