| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |