| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 #include <new> | 7 #include <new> |
| 8 #include "SkBBoxHierarchy.h" |
| 9 #include "SkDrawPictureCallback.h" |
| 8 #include "SkPictureData.h" | 10 #include "SkPictureData.h" |
| 9 #include "SkPictureRecord.h" | 11 #include "SkPictureRecord.h" |
| 10 #include "SkReadBuffer.h" | 12 #include "SkReadBuffer.h" |
| 11 #include "SkTextBlob.h" | 13 #include "SkTextBlob.h" |
| 12 #include "SkTypeface.h" | 14 #include "SkTypeface.h" |
| 15 #include "SkTSort.h" |
| 13 #include "SkWriteBuffer.h" | 16 #include "SkWriteBuffer.h" |
| 14 | 17 |
| 15 #if SK_SUPPORT_GPU | 18 #if SK_SUPPORT_GPU |
| 16 #include "GrContext.h" | 19 #include "GrContext.h" |
| 17 #endif | 20 #endif |
| 18 | 21 |
| 19 template <typename T> int SafeCount(const T* obj) { | 22 template <typename T> int SafeCount(const T* obj) { |
| 20 return obj ? obj->count() : 0; | 23 return obj ? obj->count() : 0; |
| 21 } | 24 } |
| 22 | 25 |
| (...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 575 } | 578 } |
| 576 } | 579 } |
| 577 | 580 |
| 578 bool SkPictureData::suitableForLayerOptimization() const { | 581 bool SkPictureData::suitableForLayerOptimization() const { |
| 579 return fContentInfo.numLayers() > 0; | 582 return fContentInfo.numLayers() > 0; |
| 580 } | 583 } |
| 581 #endif | 584 #endif |
| 582 /////////////////////////////////////////////////////////////////////////////// | 585 /////////////////////////////////////////////////////////////////////////////// |
| 583 | 586 |
| 584 | 587 |
| OLD | NEW |