Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(234)

Side by Side Diff: src/core/SkPictureData.cpp

Issue 824013004: Revert of Rename SkDrawPictureCallback to SkPicture::AbortCallback (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/core/SkPicture.cpp ('k') | src/core/SkPicturePlayback.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « src/core/SkPicture.cpp ('k') | src/core/SkPicturePlayback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698