| OLD | NEW | 
|     1 /* |     1 /* | 
|     2  * Copyright 2008 The Android Open Source Project |     2  * Copyright 2008 The Android Open Source Project | 
|     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 #include "SkCanvas.h" |     8 #include "SkCanvas.h" | 
|     9 #include "SkCanvasDrawable.h" |     9 #include "SkCanvasDrawable.h" | 
|    10 #include "SkCanvasPriv.h" |    10 #include "SkCanvasPriv.h" | 
| (...skipping 1943 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1954 } |  1954 } | 
|  1955  |  1955  | 
|  1956 void SkCanvas::drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, |  1956 void SkCanvas::drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, | 
|  1957                                     const SkRect& dst, const SkPaint* paint, |  1957                                     const SkRect& dst, const SkPaint* paint, | 
|  1958                                     DrawBitmapRectFlags flags) { |  1958                                     DrawBitmapRectFlags flags) { | 
|  1959     TRACE_EVENT0("disabled-by-default-skia", "SkCanvas::drawBitmapRectToRect()")
      ; |  1959     TRACE_EVENT0("disabled-by-default-skia", "SkCanvas::drawBitmapRectToRect()")
      ; | 
|  1960     SkDEBUGCODE(bitmap.validate();) |  1960     SkDEBUGCODE(bitmap.validate();) | 
|  1961     this->internalDrawBitmapRect(bitmap, src, dst, paint, flags); |  1961     this->internalDrawBitmapRect(bitmap, src, dst, paint, flags); | 
|  1962 } |  1962 } | 
|  1963  |  1963  | 
|  1964 void SkCanvas::drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& matrix, |  | 
|  1965                                 const SkPaint* paint) { |  | 
|  1966     TRACE_EVENT0("disabled-by-default-skia", "SkCanvas::drawBitmapMatrix()"); |  | 
|  1967     SkDEBUGCODE(bitmap.validate();) |  | 
|  1968     this->internalDrawBitmap(bitmap, matrix, paint); |  | 
|  1969 } |  | 
|  1970  |  | 
|  1971 void SkCanvas::internalDrawBitmapNine(const SkBitmap& bitmap, |  1964 void SkCanvas::internalDrawBitmapNine(const SkBitmap& bitmap, | 
|  1972                                       const SkIRect& center, const SkRect& dst, |  1965                                       const SkIRect& center, const SkRect& dst, | 
|  1973                                       const SkPaint* paint) { |  1966                                       const SkPaint* paint) { | 
|  1974     if (bitmap.drawsNothing()) { |  1967     if (bitmap.drawsNothing()) { | 
|  1975         return; |  1968         return; | 
|  1976     } |  1969     } | 
|  1977     if (NULL == paint || paint->canComputeFastBounds()) { |  1970     if (NULL == paint || paint->canComputeFastBounds()) { | 
|  1978         SkRect storage; |  1971         SkRect storage; | 
|  1979         const SkRect* bounds = &dst; |  1972         const SkRect* bounds = &dst; | 
|  1980         if (paint) { |  1973         if (paint) { | 
| (...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  2576     } |  2569     } | 
|  2577  |  2570  | 
|  2578     if (matrix) { |  2571     if (matrix) { | 
|  2579         canvas->concat(*matrix); |  2572         canvas->concat(*matrix); | 
|  2580     } |  2573     } | 
|  2581 } |  2574 } | 
|  2582  |  2575  | 
|  2583 SkAutoCanvasMatrixPaint::~SkAutoCanvasMatrixPaint() { |  2576 SkAutoCanvasMatrixPaint::~SkAutoCanvasMatrixPaint() { | 
|  2584     fCanvas->restoreToCount(fSaveCount); |  2577     fCanvas->restoreToCount(fSaveCount); | 
|  2585 } |  2578 } | 
| OLD | NEW |