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 |
(...skipping 19 matching lines...) Expand all Loading... |
30 SkSafeRef(fPRCont); | 30 SkSafeRef(fPRCont); |
31 fEmptyBitmap.setConfig(SkImageInfo::Make(width, height, | 31 fEmptyBitmap.setConfig(SkImageInfo::Make(width, height, |
32 kUnknown_SkColorType, | 32 kUnknown_SkColorType, |
33 kIgnore_SkAlphaType)); | 33 kIgnore_SkAlphaType)); |
34 } | 34 } |
35 | 35 |
36 virtual ~SkGatherPixelRefsAndRectsDevice() { | 36 virtual ~SkGatherPixelRefsAndRectsDevice() { |
37 SkSafeUnref(fPRCont); | 37 SkSafeUnref(fPRCont); |
38 } | 38 } |
39 | 39 |
40 virtual uint32_t getDeviceCapabilities() SK_OVERRIDE { return 0; } | |
41 | |
42 virtual int width() const SK_OVERRIDE { return fSize.width(); } | 40 virtual int width() const SK_OVERRIDE { return fSize.width(); } |
43 virtual int height() const SK_OVERRIDE { return fSize.height(); } | 41 virtual int height() const SK_OVERRIDE { return fSize.height(); } |
44 virtual bool isOpaque() const SK_OVERRIDE { return false; } | 42 virtual bool isOpaque() const SK_OVERRIDE { return false; } |
45 virtual SkBitmap::Config config() const SK_OVERRIDE { | 43 virtual SkBitmap::Config config() const SK_OVERRIDE { |
46 return SkBitmap::kNo_Config; | 44 return SkBitmap::kNo_Config; |
47 } | 45 } |
48 virtual SkImageInfo imageInfo() const SK_OVERRIDE { | 46 virtual SkImageInfo imageInfo() const SK_OVERRIDE { |
49 return fEmptyBitmap.info(); | 47 return fEmptyBitmap.info(); |
50 } | 48 } |
51 | 49 |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 static void NotSupported() { | 344 static void NotSupported() { |
347 SkDEBUGFAIL("this method should never be called"); | 345 SkDEBUGFAIL("this method should never be called"); |
348 } | 346 } |
349 | 347 |
350 static void NothingToDo() {} | 348 static void NothingToDo() {} |
351 | 349 |
352 typedef SkBaseDevice INHERITED; | 350 typedef SkBaseDevice INHERITED; |
353 }; | 351 }; |
354 | 352 |
355 #endif // SkGatherPixelRefsAndRects_DEFINED | 353 #endif // SkGatherPixelRefsAndRects_DEFINED |
OLD | NEW |