| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2010 Google Inc. | 3 * Copyright 2010 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 | 9 |
| 10 | 10 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 virtual int width() const SK_OVERRIDE { | 75 virtual int width() const SK_OVERRIDE { |
| 76 return NULL == fRenderTarget ? 0 : fRenderTarget->width(); | 76 return NULL == fRenderTarget ? 0 : fRenderTarget->width(); |
| 77 } | 77 } |
| 78 virtual int height() const SK_OVERRIDE { | 78 virtual int height() const SK_OVERRIDE { |
| 79 return NULL == fRenderTarget ? 0 : fRenderTarget->height(); | 79 return NULL == fRenderTarget ? 0 : fRenderTarget->height(); |
| 80 } | 80 } |
| 81 virtual bool isOpaque() const SK_OVERRIDE { | 81 virtual bool isOpaque() const SK_OVERRIDE { |
| 82 return NULL == fRenderTarget ? false | 82 return NULL == fRenderTarget ? false |
| 83 : kRGB_565_GrPixelConfig == fRenderTarget->
config(); | 83 : kRGB_565_GrPixelConfig == fRenderTarget->
config(); |
| 84 } | 84 } |
| 85 #ifdef SK_SUPPORT_LEGACY_DEVICE_CONFIG |
| 85 virtual SkBitmap::Config config() const SK_OVERRIDE; | 86 virtual SkBitmap::Config config() const SK_OVERRIDE; |
| 87 #endif |
| 86 | 88 |
| 87 virtual void clear(SkColor color) SK_OVERRIDE; | 89 virtual void clear(SkColor color) SK_OVERRIDE; |
| 88 virtual void drawPaint(const SkDraw&, const SkPaint& paint) SK_OVERRIDE; | 90 virtual void drawPaint(const SkDraw&, const SkPaint& paint) SK_OVERRIDE; |
| 89 virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, size_t coun
t, | 91 virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, size_t coun
t, |
| 90 const SkPoint[], const SkPaint& paint) SK_OVERRIDE; | 92 const SkPoint[], const SkPaint& paint) SK_OVERRIDE; |
| 91 virtual void drawRect(const SkDraw&, const SkRect& r, | 93 virtual void drawRect(const SkDraw&, const SkRect& r, |
| 92 const SkPaint& paint) SK_OVERRIDE; | 94 const SkPaint& paint) SK_OVERRIDE; |
| 93 virtual void drawRRect(const SkDraw&, const SkRRect& r, | 95 virtual void drawRRect(const SkDraw&, const SkRRect& r, |
| 94 const SkPaint& paint) SK_OVERRIDE; | 96 const SkPaint& paint) SK_OVERRIDE; |
| 95 virtual void drawDRRect(const SkDraw& draw, const SkRRect& outer, | 97 virtual void drawDRRect(const SkDraw& draw, const SkRRect& outer, |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 bool bicubic); | 222 bool bicubic); |
| 221 | 223 |
| 222 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint); | 224 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint); |
| 223 | 225 |
| 224 static SkPicture::AccelData::Key ComputeAccelDataKey(); | 226 static SkPicture::AccelData::Key ComputeAccelDataKey(); |
| 225 | 227 |
| 226 typedef SkBitmapDevice INHERITED; | 228 typedef SkBitmapDevice INHERITED; |
| 227 }; | 229 }; |
| 228 | 230 |
| 229 #endif | 231 #endif |
| OLD | NEW |