| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 GrDrawContext_DEFINED | 8 #ifndef GrDrawContext_DEFINED |
| 9 #define GrDrawContext_DEFINED | 9 #define GrDrawContext_DEFINED |
| 10 | 10 |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 /** | 256 /** |
| 257 * After this returns any pending surface IO will be issued to the backend 3
D API and | 257 * After this returns any pending surface IO will be issued to the backend 3
D API and |
| 258 * if the surface has MSAA it will be resolved. | 258 * if the surface has MSAA it will be resolved. |
| 259 */ | 259 */ |
| 260 void prepareForExternalIO(); | 260 void prepareForExternalIO(); |
| 261 | 261 |
| 262 bool isStencilBufferMultisampled() const { | 262 bool isStencilBufferMultisampled() const { |
| 263 return fRenderTarget->isStencilBufferMultisampled(); | 263 return fRenderTarget->isStencilBufferMultisampled(); |
| 264 } | 264 } |
| 265 bool isUnifiedMultisampled() const { return fRenderTarget->isUnifiedMultisam
pled(); } | 265 bool isUnifiedMultisampled() const { return fRenderTarget->isUnifiedMultisam
pled(); } |
| 266 bool hasMixedSamples() const { return fRenderTarget->hasMixedSamples(); } | 266 bool hasMixedSamples() const { return fRenderTarget->isMixedSampled(); } |
| 267 | 267 |
| 268 bool mustUseHWAA(const GrPaint& paint) const { | 268 bool mustUseHWAA(const GrPaint& paint) const { |
| 269 return paint.isAntiAlias() && fRenderTarget->isUnifiedMultisampled(); | 269 return paint.isAntiAlias() && fRenderTarget->isUnifiedMultisampled(); |
| 270 } | 270 } |
| 271 | 271 |
| 272 const GrSurfaceDesc& desc() const { return fRenderTarget->desc(); } | 272 const GrSurfaceDesc& desc() const { return fRenderTarget->desc(); } |
| 273 int width() const { return fRenderTarget->width(); } | 273 int width() const { return fRenderTarget->width(); } |
| 274 int height() const { return fRenderTarget->height(); } | 274 int height() const { return fRenderTarget->height(); } |
| 275 GrPixelConfig config() const { return fRenderTarget->config(); } | 275 GrPixelConfig config() const { return fRenderTarget->config(); } |
| 276 int numColorSamples() const { return fRenderTarget->numColorSamples(); } | 276 int numColorSamples() const { return fRenderTarget->numColorSamples(); } |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 | 373 |
| 374 sk_sp<SkColorSpace> fColorSpace; | 374 sk_sp<SkColorSpace> fColorSpace; |
| 375 SkSurfaceProps fSurfaceProps; | 375 SkSurfaceProps fSurfaceProps; |
| 376 GrAuditTrail* fAuditTrail; | 376 GrAuditTrail* fAuditTrail; |
| 377 | 377 |
| 378 // In debug builds we guard against improper thread handling | 378 // In debug builds we guard against improper thread handling |
| 379 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;) | 379 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;) |
| 380 }; | 380 }; |
| 381 | 381 |
| 382 #endif | 382 #endif |
| OLD | NEW |