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

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

Issue 2066993003: Begin instanced rendering for simple shapes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rix perf regressions Created 4 years, 5 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 | « gyp/gpu.gypi ('k') | include/private/GrInstancedPipelineInfo.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
11 #include "GrColor.h" 11 #include "GrColor.h"
12 #include "GrPaint.h" 12 #include "GrPaint.h"
13 #include "GrRenderTarget.h" 13 #include "GrRenderTarget.h"
14 #include "SkRefCnt.h" 14 #include "SkRefCnt.h"
15 #include "SkRegion.h" 15 #include "SkRegion.h"
16 #include "SkSurfaceProps.h" 16 #include "SkSurfaceProps.h"
17 #include "../private/GrInstancedPipelineInfo.h"
17 #include "../private/GrSingleOwner.h" 18 #include "../private/GrSingleOwner.h"
18 19
19 class GrAtlasTextContext; 20 class GrAtlasTextContext;
20 class GrAuditTrail; 21 class GrAuditTrail;
21 class GrClip; 22 class GrClip;
22 class GrContext; 23 class GrContext;
23 class GrDrawBatch; 24 class GrDrawBatch;
24 class GrDrawContextPriv; 25 class GrDrawContextPriv;
25 class GrDrawPathBatchBase; 26 class GrDrawPathBatchBase;
26 class GrDrawingManager; 27 class GrDrawingManager;
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 GrDrawTarget* getDrawTarget(); 340 GrDrawTarget* getDrawTarget();
340 341
341 GrDrawingManager* fDrawingManager; 342 GrDrawingManager* fDrawingManager;
342 sk_sp<GrRenderTarget> fRenderTarget; 343 sk_sp<GrRenderTarget> fRenderTarget;
343 344
344 // In MDB-mode the drawTarget can be closed by some other drawContext that h as picked 345 // In MDB-mode the drawTarget can be closed by some other drawContext that h as picked
345 // it up. For this reason, the drawTarget should only ever be accessed via ' getDrawTarget'. 346 // it up. For this reason, the drawTarget should only ever be accessed via ' getDrawTarget'.
346 GrDrawTarget* fDrawTarget; 347 GrDrawTarget* fDrawTarget;
347 SkAutoTDelete<GrAtlasTextContext> fAtlasTextContext; 348 SkAutoTDelete<GrAtlasTextContext> fAtlasTextContext;
348 GrContext* fContext; 349 GrContext* fContext;
350 GrInstancedPipelineInfo fInstancedPipelineInfo;
349 351
350 SkSurfaceProps fSurfaceProps; 352 SkSurfaceProps fSurfaceProps;
351 GrAuditTrail* fAuditTrail; 353 GrAuditTrail* fAuditTrail;
352 354
353 // In debug builds we guard against improper thread handling 355 // In debug builds we guard against improper thread handling
354 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;) 356 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;)
355 }; 357 };
356 358
357 #endif 359 #endif
OLDNEW
« no previous file with comments | « gyp/gpu.gypi ('k') | include/private/GrInstancedPipelineInfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698