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

Side by Side Diff: src/gpu/SkGpuDevice.h

Issue 1918003003: Bring sk_sp to GrDrawContext (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update 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 2010 Google Inc. 2 * Copyright 2010 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 7
8 #ifndef SkGpuDevice_DEFINED 8 #ifndef SkGpuDevice_DEFINED
9 #define SkGpuDevice_DEFINED 9 #define SkGpuDevice_DEFINED
10 10
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 bool onShouldDisableLCD(const SkPaint&) const final; 139 bool onShouldDisableLCD(const SkPaint&) const final;
140 140
141 /** PRIVATE / EXPERIMENTAL -- do not call */ 141 /** PRIVATE / EXPERIMENTAL -- do not call */
142 virtual bool EXPERIMENTAL_drawPicture(SkCanvas* canvas, const SkPicture* pic ture, 142 virtual bool EXPERIMENTAL_drawPicture(SkCanvas* canvas, const SkPicture* pic ture,
143 const SkMatrix*, const SkPaint*) overr ide; 143 const SkMatrix*, const SkPaint*) overr ide;
144 144
145 private: 145 private:
146 // We want these unreffed in DrawContext, RenderTarget, GrContext order. 146 // We want these unreffed in DrawContext, RenderTarget, GrContext order.
147 SkAutoTUnref<GrContext> fContext; 147 SkAutoTUnref<GrContext> fContext;
148 SkAutoTUnref<GrRenderTarget> fRenderTarget; 148 SkAutoTUnref<GrRenderTarget> fRenderTarget;
149 SkAutoTUnref<GrDrawContext> fDrawContext; 149 sk_sp<GrDrawContext> fDrawContext;
150 150
151 SkAutoTUnref<const SkClipStack> fClipStack; 151 SkAutoTUnref<const SkClipStack> fClipStack;
152 SkIPoint fClipOrigin; 152 SkIPoint fClipOrigin;
153 GrClip fClip;; 153 GrClip fClip;;
154 // remove when our clients don't rely on accessBitmap() 154 // remove when our clients don't rely on accessBitmap()
155 SkBitmap fLegacyBitmap; 155 SkBitmap fLegacyBitmap;
156 bool fOpaque; 156 bool fOpaque;
157 157
158 enum Flags { 158 enum Flags {
159 kNeedClear_Flag = 1 << 0, //!< Surface requires an initial clear 159 kNeedClear_Flag = 1 << 0, //!< Surface requires an initial clear
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 251
252 void drawSpriteWithFilter(const SkDraw&, const SkBitmap&, int x, int y, 252 void drawSpriteWithFilter(const SkDraw&, const SkBitmap&, int x, int y,
253 const SkPaint&) override; 253 const SkPaint&) override;
254 254
255 friend class GrAtlasTextContext; 255 friend class GrAtlasTextContext;
256 friend class SkSurface_Gpu; // for access to surfaceProps 256 friend class SkSurface_Gpu; // for access to surfaceProps
257 typedef SkBaseDevice INHERITED; 257 typedef SkBaseDevice INHERITED;
258 }; 258 };
259 259
260 #endif 260 #endif
OLDNEW
« gm/beziereffects.cpp ('K') | « src/gpu/GrYUVProvider.cpp ('k') | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698