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

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

Issue 1966903004: Remove clip from GrPipelineBuilder (Closed) Base URL: https://skia.googlesource.com/skia.git@fix2_nvpr
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
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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 const SkRect& rect); 301 const SkRect& rect);
302 302
303 void internalDrawPath(const GrClip& clip, 303 void internalDrawPath(const GrClip& clip,
304 const GrPaint& paint, 304 const GrPaint& paint,
305 const SkMatrix& viewMatrix, 305 const SkMatrix& viewMatrix,
306 const SkPath& path, 306 const SkPath& path,
307 const GrStyle& style); 307 const GrStyle& style);
308 308
309 // This entry point allows the GrTextContext-derived classes to add their ba tches to 309 // This entry point allows the GrTextContext-derived classes to add their ba tches to
310 // the drawTarget. 310 // the drawTarget.
311 void drawBatch(GrPipelineBuilder* pipelineBuilder, GrDrawBatch* batch); 311 void drawBatch(GrPipelineBuilder* pipelineBuilder, const GrClip&, GrDrawBatc h* batch);
312 312
313 GrDrawTarget* getDrawTarget(); 313 GrDrawTarget* getDrawTarget();
314 314
315 GrDrawingManager* fDrawingManager; 315 GrDrawingManager* fDrawingManager;
316 sk_sp<GrRenderTarget> fRenderTarget; 316 sk_sp<GrRenderTarget> fRenderTarget;
317 317
318 // In MDB-mode the drawTarget can be closed by some other drawContext that h as picked 318 // In MDB-mode the drawTarget can be closed by some other drawContext that h as picked
319 // it up. For this reason, the drawTarget should only ever be accessed via ' getDrawTarget'. 319 // it up. For this reason, the drawTarget should only ever be accessed via ' getDrawTarget'.
320 GrDrawTarget* fDrawTarget; 320 GrDrawTarget* fDrawTarget;
321 SkAutoTDelete<GrAtlasTextContext> fAtlasTextContext; 321 SkAutoTDelete<GrAtlasTextContext> fAtlasTextContext;
322 GrContext* fContext; 322 GrContext* fContext;
323 323
324 SkSurfaceProps fSurfaceProps; 324 SkSurfaceProps fSurfaceProps;
325 GrAuditTrail* fAuditTrail; 325 GrAuditTrail* fAuditTrail;
326 326
327 // In debug builds we guard against improper thread handling 327 // In debug builds we guard against improper thread handling
328 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;) 328 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;)
329 }; 329 };
330 330
331 #endif 331 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698