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