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 29 matching lines...) Expand all Loading... |
40 virtual int width() const SK_OVERRIDE { return fSize.width(); } | 40 virtual int width() const SK_OVERRIDE { return fSize.width(); } |
41 virtual int height() const SK_OVERRIDE { return fSize.height(); } | 41 virtual int height() const SK_OVERRIDE { return fSize.height(); } |
42 virtual bool isOpaque() const SK_OVERRIDE { return false; } | 42 virtual bool isOpaque() const SK_OVERRIDE { return false; } |
43 virtual SkBitmap::Config config() const SK_OVERRIDE { | 43 virtual SkBitmap::Config config() const SK_OVERRIDE { |
44 return SkBitmap::kNo_Config; | 44 return SkBitmap::kNo_Config; |
45 } | 45 } |
46 virtual SkImageInfo imageInfo() const SK_OVERRIDE { | 46 virtual SkImageInfo imageInfo() const SK_OVERRIDE { |
47 return fEmptyBitmap.info(); | 47 return fEmptyBitmap.info(); |
48 } | 48 } |
49 | 49 |
50 #ifdef SK_SUPPORT_LEGACY_WRITEPIXELSCONFIG | |
51 virtual void writePixels(const SkBitmap& bitmap, int x, int y, | |
52 SkCanvas::Config8888 config8888) SK_OVERRIDE { | |
53 NotSupported(); | |
54 } | |
55 #endif | |
56 virtual GrRenderTarget* accessRenderTarget() SK_OVERRIDE { return NULL; } | 50 virtual GrRenderTarget* accessRenderTarget() SK_OVERRIDE { return NULL; } |
57 | 51 |
58 protected: | 52 protected: |
59 virtual bool filterTextFlags(const SkPaint& paint, TextFlags*) SK_OVERRIDE { | 53 virtual bool filterTextFlags(const SkPaint& paint, TextFlags*) SK_OVERRIDE { |
60 return false; | 54 return false; |
61 } | 55 } |
62 virtual void clear(SkColor color) SK_OVERRIDE { | 56 virtual void clear(SkColor color) SK_OVERRIDE { |
63 NothingToDo(); | 57 NothingToDo(); |
64 } | 58 } |
65 virtual void drawPaint(const SkDraw& draw, const SkPaint& paint) SK_OVERRIDE
{ | 59 virtual void drawPaint(const SkDraw& draw, const SkPaint& paint) SK_OVERRIDE
{ |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 static void NotSupported() { | 338 static void NotSupported() { |
345 SkDEBUGFAIL("this method should never be called"); | 339 SkDEBUGFAIL("this method should never be called"); |
346 } | 340 } |
347 | 341 |
348 static void NothingToDo() {} | 342 static void NothingToDo() {} |
349 | 343 |
350 typedef SkBaseDevice INHERITED; | 344 typedef SkBaseDevice INHERITED; |
351 }; | 345 }; |
352 | 346 |
353 #endif // SkGatherPixelRefsAndRects_DEFINED | 347 #endif // SkGatherPixelRefsAndRects_DEFINED |
OLD | NEW |