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

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

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