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

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

Issue 1982583002: Add isUnifiedMultisampled entry point to GrDrawContext (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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
« no previous file with comments | « no previous file | src/gpu/SkGpuDevice.cpp » ('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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 * Draws a batch 254 * Draws a batch
255 * 255 *
256 * @param paint describes how to color pixels. 256 * @param paint describes how to color pixels.
257 * @param batch the batch to draw 257 * @param batch the batch to draw
258 */ 258 */
259 void drawBatch(const GrClip&, const GrPaint&, GrDrawBatch*); 259 void drawBatch(const GrClip&, const GrPaint&, GrDrawBatch*);
260 260
261 const GrSurfaceDesc& desc() const { return fRenderTarget->desc(); } 261 const GrSurfaceDesc& desc() const { return fRenderTarget->desc(); }
262 int width() const { return fRenderTarget->width(); } 262 int width() const { return fRenderTarget->width(); }
263 int height() const { return fRenderTarget->height(); } 263 int height() const { return fRenderTarget->height(); }
264 bool isUnifiedMultisampled() const { return fRenderTarget->isUnifiedMultisam pled(); }
264 int numColorSamples() const { return fRenderTarget->numColorSamples(); } 265 int numColorSamples() const { return fRenderTarget->numColorSamples(); }
265 bool isGammaCorrect() const { return fSurfaceProps.isGammaCorrect(); } 266 bool isGammaCorrect() const { return fSurfaceProps.isGammaCorrect(); }
266 267
267 GrRenderTarget* accessRenderTarget() { return fRenderTarget.get(); } 268 GrRenderTarget* accessRenderTarget() { return fRenderTarget.get(); }
268 269
269 sk_sp<GrRenderTarget> renderTarget() { return fRenderTarget; } 270 sk_sp<GrRenderTarget> renderTarget() { return fRenderTarget; }
270 271
271 sk_sp<GrTexture> asTexture() { return sk_ref_sp(fRenderTarget->asTexture()); } 272 sk_sp<GrTexture> asTexture() { return sk_ref_sp(fRenderTarget->asTexture()); }
272 273
273 // Provides access to functions that aren't part of the public API. 274 // Provides access to functions that aren't part of the public API.
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 GrContext* fContext; 324 GrContext* fContext;
324 325
325 SkSurfaceProps fSurfaceProps; 326 SkSurfaceProps fSurfaceProps;
326 GrAuditTrail* fAuditTrail; 327 GrAuditTrail* fAuditTrail;
327 328
328 // In debug builds we guard against improper thread handling 329 // In debug builds we guard against improper thread handling
329 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;) 330 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;)
330 }; 331 };
331 332
332 #endif 333 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698