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

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

Issue 2198933002: Making a sample for shadow maps for more intensive development (Closed) Base URL: https://skia.googlesource.com/skia@shadow-gm
Patch Set: undo change Created 4 years, 4 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
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 #ifdef SK_EXPERIMENTAL_SHADOWING 3005 #ifdef SK_EXPERIMENTAL_SHADOWING
3006 void SkCanvas::drawShadowedPicture(const SkPicture* picture, 3006 void SkCanvas::drawShadowedPicture(const SkPicture* picture,
3007 const SkMatrix* matrix, 3007 const SkMatrix* matrix,
3008 const SkPaint* paint) { 3008 const SkPaint* paint) {
3009 RETURN_ON_NULL(picture); 3009 RETURN_ON_NULL(picture);
3010 3010
3011 TRACE_EVENT0("disabled-by-default-skia", "SkCanvas::drawShadowedPicture()"); 3011 TRACE_EVENT0("disabled-by-default-skia", "SkCanvas::drawShadowedPicture()");
3012 3012
3013 this->onDrawShadowedPicture(picture, matrix, paint); 3013 this->onDrawShadowedPicture(picture, matrix, paint);
3014 } 3014 }
3015 3015
robertphillips 2016/08/02 16:05:07 Rm this ?
vjiaoblack 2016/08/03 14:04:21 Done.
3016 #define MIN(x,y) ((x) > (y) ? (y) : (x))
3016 void SkCanvas::onDrawShadowedPicture(const SkPicture* picture, 3017 void SkCanvas::onDrawShadowedPicture(const SkPicture* picture,
3017 const SkMatrix* matrix, 3018 const SkMatrix* matrix,
3018 const SkPaint* paint) { 3019 const SkPaint* paint) {
3019 this->onDrawPicture(picture, matrix, paint); 3020 this->onDrawPicture(picture, matrix, paint);
3020 } 3021 }
3021 #endif 3022 #endif
3022 3023
3023 /////////////////////////////////////////////////////////////////////////////// 3024 ///////////////////////////////////////////////////////////////////////////////
3024 /////////////////////////////////////////////////////////////////////////////// 3025 ///////////////////////////////////////////////////////////////////////////////
3025 3026
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
3123 3124
3124 SkAutoCanvasMatrixPaint::~SkAutoCanvasMatrixPaint() { 3125 SkAutoCanvasMatrixPaint::~SkAutoCanvasMatrixPaint() {
3125 fCanvas->restoreToCount(fSaveCount); 3126 fCanvas->restoreToCount(fSaveCount);
3126 } 3127 }
3127 3128
3128 #ifdef SK_SUPPORT_LEGACY_NEW_SURFACE_API 3129 #ifdef SK_SUPPORT_LEGACY_NEW_SURFACE_API
3129 SkSurface* SkCanvas::newSurface(const SkImageInfo& info, const SkSurfaceProps* p rops) { 3130 SkSurface* SkCanvas::newSurface(const SkImageInfo& info, const SkSurfaceProps* p rops) {
3130 return this->makeSurface(info, props).release(); 3131 return this->makeSurface(info, props).release();
3131 } 3132 }
3132 #endif 3133 #endif
OLDNEW
« samplecode/SampleShadowing.cpp ('K') | « samplecode/SampleShadowing.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698