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

Side by Side Diff: include/gpu/GrDrawContext.h

Issue 2225303002: Add flag for window rectangles to GrRenderTarget (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add GrRenderTarget flag for window rectangles Created 4 years, 4 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 | « no previous file | include/gpu/GrRenderTarget.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 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
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
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
OLDNEW
« no previous file with comments | « no previous file | include/gpu/GrRenderTarget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698