| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2013 Google Inc. | 3 * Copyright 2013 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 #ifndef SkBitmapDevice_DEFINED | 9 #ifndef SkBitmapDevice_DEFINED |
| 10 #define SkBitmapDevice_DEFINED | 10 #define SkBitmapDevice_DEFINED |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 public: | 33 public: |
| 34 static SkBitmapDevice* Create(const SkImageInfo& info) { | 34 static SkBitmapDevice* Create(const SkImageInfo& info) { |
| 35 return Create(info, NULL); | 35 return Create(info, NULL); |
| 36 } | 36 } |
| 37 | 37 |
| 38 virtual SkImageInfo imageInfo() const SK_OVERRIDE; | 38 virtual SkImageInfo imageInfo() const SK_OVERRIDE; |
| 39 | 39 |
| 40 protected: | 40 protected: |
| 41 bool onShouldDisableLCD(const SkPaint&) const SK_OVERRIDE; | 41 bool onShouldDisableLCD(const SkPaint&) const SK_OVERRIDE; |
| 42 | 42 |
| 43 /** Clears the entire device to the specified color (including alpha). |
| 44 * Ignores the clip. |
| 45 */ |
| 46 virtual void clear(SkColor color) SK_OVERRIDE; |
| 47 |
| 43 /** These are called inside the per-device-layer loop for each draw call. | 48 /** These are called inside the per-device-layer loop for each draw call. |
| 44 When these are called, we have already applied any saveLayer operations, | 49 When these are called, we have already applied any saveLayer operations, |
| 45 and are handling any looping from the paint, and any effects from the | 50 and are handling any looping from the paint, and any effects from the |
| 46 DrawFilter. | 51 DrawFilter. |
| 47 */ | 52 */ |
| 48 virtual void drawPaint(const SkDraw&, const SkPaint& paint) SK_OVERRIDE; | 53 virtual void drawPaint(const SkDraw&, const SkPaint& paint) SK_OVERRIDE; |
| 49 virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, size_t coun
t, | 54 virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, size_t coun
t, |
| 50 const SkPoint[], const SkPaint& paint) SK_OVERRIDE; | 55 const SkPoint[], const SkPaint& paint) SK_OVERRIDE; |
| 51 virtual void drawRect(const SkDraw&, const SkRect& r, | 56 virtual void drawRect(const SkDraw&, const SkRect& r, |
| 52 const SkPaint& paint) SK_OVERRIDE; | 57 const SkPaint& paint) SK_OVERRIDE; |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 virtual const void* peekPixels(SkImageInfo*, size_t* rowBytes) SK_OVERRIDE; | 159 virtual const void* peekPixels(SkImageInfo*, size_t* rowBytes) SK_OVERRIDE; |
| 155 | 160 |
| 156 virtual SkImageFilter::Cache* getImageFilterCache() SK_OVERRIDE; | 161 virtual SkImageFilter::Cache* getImageFilterCache() SK_OVERRIDE; |
| 157 | 162 |
| 158 SkBitmap fBitmap; | 163 SkBitmap fBitmap; |
| 159 | 164 |
| 160 typedef SkBaseDevice INHERITED; | 165 typedef SkBaseDevice INHERITED; |
| 161 }; | 166 }; |
| 162 | 167 |
| 163 #endif // SkBitmapDevice_DEFINED | 168 #endif // SkBitmapDevice_DEFINED |
| OLD | NEW |