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