| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2010 Google Inc. | 3 * Copyright 2010 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 #ifndef SkGpuDevice_DEFINED | 9 #ifndef SkGpuDevice_DEFINED |
| 10 #define SkGpuDevice_DEFINED | 10 #define SkGpuDevice_DEFINED |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 // We want these unreffed in DrawContext, RenderTarget, GrContext order. | 157 // We want these unreffed in DrawContext, RenderTarget, GrContext order. |
| 158 SkAutoTUnref<GrContext> fContext; | 158 SkAutoTUnref<GrContext> fContext; |
| 159 SkAutoTUnref<GrRenderTarget> fRenderTarget; | 159 SkAutoTUnref<GrRenderTarget> fRenderTarget; |
| 160 SkAutoTUnref<GrDrawContext> fDrawContext; | 160 SkAutoTUnref<GrDrawContext> fDrawContext; |
| 161 | 161 |
| 162 SkAutoTUnref<const SkClipStack> fClipStack; | 162 SkAutoTUnref<const SkClipStack> fClipStack; |
| 163 SkIPoint fClipOrigin; | 163 SkIPoint fClipOrigin; |
| 164 GrClip fClip;; | 164 GrClip fClip;; |
| 165 // remove when our clients don't rely on accessBitmap() | 165 // remove when our clients don't rely on accessBitmap() |
| 166 SkBitmap fLegacyBitmap; | 166 SkBitmap fLegacyBitmap; |
| 167 bool fNeedClear; | |
| 168 bool fOpaque; | 167 bool fOpaque; |
| 169 | 168 |
| 170 enum Flags { | 169 enum Flags { |
| 171 kNeedClear_Flag = 1 << 0, //!< Surface requires an initial clear | 170 kNeedClear_Flag = 1 << 0, //!< Surface requires an initial clear |
| 172 kIsOpaque_Flag = 1 << 1, //!< Hint from client that rendering to this
device will be | 171 kIsOpaque_Flag = 1 << 1, //!< Hint from client that rendering to this
device will be |
| 173 // opaque even if the config supports alpha
. | 172 // opaque even if the config supports alpha
. |
| 174 }; | 173 }; |
| 175 static bool CheckAlphaTypeAndGetFlags(const SkImageInfo* info, InitContents
init, | 174 static bool CheckAlphaTypeAndGetFlags(const SkImageInfo* info, InitContents
init, |
| 176 unsigned* flags); | 175 unsigned* flags); |
| 177 | 176 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 | 256 |
| 258 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c
onst SkImageInfo&, | 257 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c
onst SkImageInfo&, |
| 259 int sampleCount); | 258 int sampleCount); |
| 260 | 259 |
| 261 friend class GrAtlasTextContext; | 260 friend class GrAtlasTextContext; |
| 262 friend class SkSurface_Gpu; // for access to surfaceProps | 261 friend class SkSurface_Gpu; // for access to surfaceProps |
| 263 typedef SkBaseDevice INHERITED; | 262 typedef SkBaseDevice INHERITED; |
| 264 }; | 263 }; |
| 265 | 264 |
| 266 #endif | 265 #endif |
| OLD | NEW |