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

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

Issue 2147053002: Remove GrWrapTextureInBitmap from public API (Closed) Base URL: https://chromium.googlesource.com/skia.git@wrap
Patch Set: rm SK_API 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 | « include/gpu/SkGr.h ('k') | src/gpu/SkGrPriv.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 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 23 matching lines...) Expand all
34 #include "SkTextBlob.h" 34 #include "SkTextBlob.h"
35 #include "SkTextFormatParams.h" 35 #include "SkTextFormatParams.h"
36 #include "SkTLazy.h" 36 #include "SkTLazy.h"
37 #include "SkTraceEvent.h" 37 #include "SkTraceEvent.h"
38 38
39 #include <new> 39 #include <new>
40 40
41 #if SK_SUPPORT_GPU 41 #if SK_SUPPORT_GPU
42 #include "GrContext.h" 42 #include "GrContext.h"
43 #include "GrRenderTarget.h" 43 #include "GrRenderTarget.h"
44 #include "SkGr.h" 44 #include "SkGrPriv.h"
45 #endif 45 #endif
46 46
47 #define RETURN_ON_NULL(ptr) do { if (nullptr == (ptr)) return; } while (0) 47 #define RETURN_ON_NULL(ptr) do { if (nullptr == (ptr)) return; } while (0)
48 48
49 //#define SK_SUPPORT_PRECHECK_CLIPRECT 49 //#define SK_SUPPORT_PRECHECK_CLIPRECT
50 50
51 /* 51 /*
52 * Return true if the drawing this rect would hit every pixels in the canvas. 52 * Return true if the drawing this rect would hit every pixels in the canvas.
53 * 53 *
54 * Returns false if 54 * Returns false if
(...skipping 3064 matching lines...) Expand 10 before | Expand all | Expand 10 after
3119 3119
3120 SkAutoCanvasMatrixPaint::~SkAutoCanvasMatrixPaint() { 3120 SkAutoCanvasMatrixPaint::~SkAutoCanvasMatrixPaint() {
3121 fCanvas->restoreToCount(fSaveCount); 3121 fCanvas->restoreToCount(fSaveCount);
3122 } 3122 }
3123 3123
3124 #ifdef SK_SUPPORT_LEGACY_NEW_SURFACE_API 3124 #ifdef SK_SUPPORT_LEGACY_NEW_SURFACE_API
3125 SkSurface* SkCanvas::newSurface(const SkImageInfo& info, const SkSurfaceProps* p rops) { 3125 SkSurface* SkCanvas::newSurface(const SkImageInfo& info, const SkSurfaceProps* p rops) {
3126 return this->makeSurface(info, props).release(); 3126 return this->makeSurface(info, props).release();
3127 } 3127 }
3128 #endif 3128 #endif
OLDNEW
« no previous file with comments | « include/gpu/SkGr.h ('k') | src/gpu/SkGrPriv.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698