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

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

Issue 1930623003: Clean up test drawContext usage (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: More clean up Created 4 years, 7 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 1840 matching lines...) Expand 10 before | Expand all | Expand 10 after
1851 } 1851 }
1852 1852
1853 const SkMatrix& SkCanvas::getTotalMatrix() const { 1853 const SkMatrix& SkCanvas::getTotalMatrix() const {
1854 return fMCRec->fMatrix; 1854 return fMCRec->fMatrix;
1855 } 1855 }
1856 1856
1857 const SkRegion& SkCanvas::internal_private_getTotalClip() const { 1857 const SkRegion& SkCanvas::internal_private_getTotalClip() const {
1858 return fMCRec->fRasterClip.forceGetBW(); 1858 return fMCRec->fRasterClip.forceGetBW();
1859 } 1859 }
1860 1860
1861 GrRenderTarget* SkCanvas::internal_private_accessTopLayerRenderTarget() { 1861 GrDrawContext* SkCanvas::internal_private_accessTopLayerDrawContext() {
1862 SkBaseDevice* dev = this->getTopDevice(); 1862 SkBaseDevice* dev = this->getTopDevice();
1863 return dev ? dev->accessRenderTarget() : nullptr; 1863 return dev ? dev->accessDrawContext() : nullptr;
1864 } 1864 }
1865 1865
1866 GrContext* SkCanvas::getGrContext() { 1866 GrContext* SkCanvas::getGrContext() {
1867 SkBaseDevice* device = this->getTopDevice(); 1867 SkBaseDevice* device = this->getTopDevice();
1868 return device ? device->context() : nullptr; 1868 return device ? device->context() : nullptr;
1869 } 1869 }
1870 1870
1871 void SkCanvas::drawDRRect(const SkRRect& outer, const SkRRect& inner, 1871 void SkCanvas::drawDRRect(const SkRRect& outer, const SkRRect& inner,
1872 const SkPaint& paint) { 1872 const SkPaint& paint) {
1873 TRACE_EVENT0("disabled-by-default-skia", "SkCanvas::drawDRRect()"); 1873 TRACE_EVENT0("disabled-by-default-skia", "SkCanvas::drawDRRect()");
(...skipping 1188 matching lines...) Expand 10 before | Expand all | Expand 10 after
3062 3062
3063 SkAutoCanvasMatrixPaint::~SkAutoCanvasMatrixPaint() { 3063 SkAutoCanvasMatrixPaint::~SkAutoCanvasMatrixPaint() {
3064 fCanvas->restoreToCount(fSaveCount); 3064 fCanvas->restoreToCount(fSaveCount);
3065 } 3065 }
3066 3066
3067 #ifdef SK_SUPPORT_LEGACY_NEW_SURFACE_API 3067 #ifdef SK_SUPPORT_LEGACY_NEW_SURFACE_API
3068 SkSurface* SkCanvas::newSurface(const SkImageInfo& info, const SkSurfaceProps* p rops) { 3068 SkSurface* SkCanvas::newSurface(const SkImageInfo& info, const SkSurfaceProps* p rops) {
3069 return this->makeSurface(info, props).release(); 3069 return this->makeSurface(info, props).release();
3070 } 3070 }
3071 #endif 3071 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698