| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   83     virtual int height() const SK_OVERRIDE { |   83     virtual int height() const SK_OVERRIDE { | 
|   84         return NULL == fRenderTarget ? 0 : fRenderTarget->height(); |   84         return NULL == fRenderTarget ? 0 : fRenderTarget->height(); | 
|   85     } |   85     } | 
|   86     virtual bool isOpaque() const SK_OVERRIDE { |   86     virtual bool isOpaque() const SK_OVERRIDE { | 
|   87         return NULL == fRenderTarget ? false |   87         return NULL == fRenderTarget ? false | 
|   88                                      : kRGB_565_GrPixelConfig == fRenderTarget->
     config(); |   88                                      : kRGB_565_GrPixelConfig == fRenderTarget->
     config(); | 
|   89     } |   89     } | 
|   90     virtual SkBitmap::Config config() const SK_OVERRIDE; |   90     virtual SkBitmap::Config config() const SK_OVERRIDE; | 
|   91  |   91  | 
|   92     virtual void clear(SkColor color) SK_OVERRIDE; |   92     virtual void clear(SkColor color) SK_OVERRIDE; | 
 |   93 #ifdef SK_SUPPORT_LEGACY_WRITEPIXELSCONFIG | 
|   93     virtual void writePixels(const SkBitmap& bitmap, int x, int y, |   94     virtual void writePixels(const SkBitmap& bitmap, int x, int y, | 
|   94                              SkCanvas::Config8888 config8888) SK_OVERRIDE; |   95                              SkCanvas::Config8888 config8888) SK_OVERRIDE; | 
|   95  |   96 #endif | 
|   96     virtual void drawPaint(const SkDraw&, const SkPaint& paint) SK_OVERRIDE; |   97     virtual void drawPaint(const SkDraw&, const SkPaint& paint) SK_OVERRIDE; | 
|   97     virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, size_t coun
     t, |   98     virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, size_t coun
     t, | 
|   98                             const SkPoint[], const SkPaint& paint) SK_OVERRIDE; |   99                             const SkPoint[], const SkPaint& paint) SK_OVERRIDE; | 
|   99     virtual void drawRect(const SkDraw&, const SkRect& r, |  100     virtual void drawRect(const SkDraw&, const SkRect& r, | 
|  100                           const SkPaint& paint) SK_OVERRIDE; |  101                           const SkPaint& paint) SK_OVERRIDE; | 
|  101     virtual void drawRRect(const SkDraw&, const SkRRect& r, |  102     virtual void drawRRect(const SkDraw&, const SkRRect& r, | 
|  102                            const SkPaint& paint) SK_OVERRIDE; |  103                            const SkPaint& paint) SK_OVERRIDE; | 
|  103     virtual void drawOval(const SkDraw&, const SkRect& oval, |  104     virtual void drawOval(const SkDraw&, const SkRect& oval, | 
|  104                           const SkPaint& paint) SK_OVERRIDE; |  105                           const SkPaint& paint) SK_OVERRIDE; | 
|  105     virtual void drawPath(const SkDraw&, const SkPath& path, |  106     virtual void drawPath(const SkDraw&, const SkPath& path, | 
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  141      */ |  142      */ | 
|  142     virtual void makeRenderTargetCurrent(); |  143     virtual void makeRenderTargetCurrent(); | 
|  143  |  144  | 
|  144     virtual bool canHandleImageFilter(const SkImageFilter*) SK_OVERRIDE; |  145     virtual bool canHandleImageFilter(const SkImageFilter*) SK_OVERRIDE; | 
|  145     virtual bool filterImage(const SkImageFilter*, const SkBitmap&, const SkMatr
     ix&, |  146     virtual bool filterImage(const SkImageFilter*, const SkBitmap&, const SkMatr
     ix&, | 
|  146                              SkBitmap*, SkIPoint*) SK_OVERRIDE; |  147                              SkBitmap*, SkIPoint*) SK_OVERRIDE; | 
|  147  |  148  | 
|  148     class SkAutoCachedTexture; // used internally |  149     class SkAutoCachedTexture; // used internally | 
|  149  |  150  | 
|  150 protected: |  151 protected: | 
|  151     // overrides from SkBaseDevice |  152     virtual bool onReadPixels(const SkBitmap&, int x, int y, SkCanvas::Config888
     8) SK_OVERRIDE; | 
|  152     virtual bool onReadPixels(const SkBitmap& bitmap, |  153     virtual bool onWritePixels(const SkImageInfo&, const void*, size_t, int, int
     ) SK_OVERRIDE; | 
|  153                               int x, int y, |  | 
|  154                               SkCanvas::Config8888 config8888) SK_OVERRIDE; |  | 
|  155  |  154  | 
|  156 private: |  155 private: | 
|  157     GrContext*      fContext; |  156     GrContext*      fContext; | 
|  158  |  157  | 
|  159     GrSkDrawProcs*  fDrawProcs; |  158     GrSkDrawProcs*  fDrawProcs; | 
|  160  |  159  | 
|  161     GrClipData      fClipData; |  160     GrClipData      fClipData; | 
|  162  |  161  | 
|  163     GrTextContext*  fMainTextContext; |  162     GrTextContext*  fMainTextContext; | 
|  164     GrTextContext*  fFallbackTextContext; |  163     GrTextContext*  fFallbackTextContext; | 
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  215                          const GrTextureParams& params, |  214                          const GrTextureParams& params, | 
|  216                          const SkPaint& paint, |  215                          const SkPaint& paint, | 
|  217                          SkCanvas::DrawBitmapRectFlags flags, |  216                          SkCanvas::DrawBitmapRectFlags flags, | 
|  218                          int tileSize, |  217                          int tileSize, | 
|  219                          bool bicubic); |  218                          bool bicubic); | 
|  220  |  219  | 
|  221     typedef SkBitmapDevice INHERITED; |  220     typedef SkBitmapDevice INHERITED; | 
|  222 }; |  221 }; | 
|  223  |  222  | 
|  224 #endif |  223 #endif | 
| OLD | NEW |