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

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

Issue 1950523002: Remove GrLayerHoister (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Forgot to remove some files Created 4 years, 5 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/SkBigPicture.cpp ('k') | src/core/SkDevice.cpp » ('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 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 "SkBitmapDevice.h" 8 #include "SkBitmapDevice.h"
9 #include "SkCanvas.h" 9 #include "SkCanvas.h"
10 #include "SkCanvasPriv.h" 10 #include "SkCanvasPriv.h"
(...skipping 2994 matching lines...) Expand 10 before | Expand all | Expand 10 after
3005 paint->computeFastBounds(bounds, &bounds); 3005 paint->computeFastBounds(bounds, &bounds);
3006 } 3006 }
3007 if (matrix) { 3007 if (matrix) {
3008 matrix->mapRect(&bounds); 3008 matrix->mapRect(&bounds);
3009 } 3009 }
3010 if (this->quickReject(bounds)) { 3010 if (this->quickReject(bounds)) {
3011 return; 3011 return;
3012 } 3012 }
3013 } 3013 }
3014 3014
3015 SkBaseDevice* device = this->getTopDevice();
3016 if (device) {
3017 // Canvas has to first give the device the opportunity to render
3018 // the picture itself.
3019 if (device->EXPERIMENTAL_drawPicture(this, picture, matrix, paint)) {
3020 return; // the device has rendered the entire picture
3021 }
3022 }
3023
3024 SkAutoCanvasMatrixPaint acmp(this, matrix, paint, picture->cullRect()); 3015 SkAutoCanvasMatrixPaint acmp(this, matrix, paint, picture->cullRect());
3025 picture->playback(this); 3016 picture->playback(this);
3026 } 3017 }
3027 3018
3028 /////////////////////////////////////////////////////////////////////////////// 3019 ///////////////////////////////////////////////////////////////////////////////
3029 /////////////////////////////////////////////////////////////////////////////// 3020 ///////////////////////////////////////////////////////////////////////////////
3030 3021
3031 SkCanvas::LayerIter::LayerIter(SkCanvas* canvas, bool skipEmptyClips) { 3022 SkCanvas::LayerIter::LayerIter(SkCanvas* canvas, bool skipEmptyClips) {
3032 static_assert(sizeof(fStorage) >= sizeof(SkDrawIter), "fStorage_too_small"); 3023 static_assert(sizeof(fStorage) >= sizeof(SkDrawIter), "fStorage_too_small");
3033 3024
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
3128 3119
3129 SkAutoCanvasMatrixPaint::~SkAutoCanvasMatrixPaint() { 3120 SkAutoCanvasMatrixPaint::~SkAutoCanvasMatrixPaint() {
3130 fCanvas->restoreToCount(fSaveCount); 3121 fCanvas->restoreToCount(fSaveCount);
3131 } 3122 }
3132 3123
3133 #ifdef SK_SUPPORT_LEGACY_NEW_SURFACE_API 3124 #ifdef SK_SUPPORT_LEGACY_NEW_SURFACE_API
3134 SkSurface* SkCanvas::newSurface(const SkImageInfo& info, const SkSurfaceProps* p rops) { 3125 SkSurface* SkCanvas::newSurface(const SkImageInfo& info, const SkSurfaceProps* p rops) {
3135 return this->makeSurface(info, props).release(); 3126 return this->makeSurface(info, props).release();
3136 } 3127 }
3137 #endif 3128 #endif
OLDNEW
« no previous file with comments | « src/core/SkBigPicture.cpp ('k') | src/core/SkDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698