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

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

Issue 1420043002: Narrow the distribution of GrDrawTarget a bit (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 1 month 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/GrDrawContext.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 2010 Google Inc. 2 * Copyright 2010 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 GrContext_DEFINED 8 #ifndef GrContext_DEFINED
9 #define GrContext_DEFINED 9 #define GrContext_DEFINED
10 10
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 GrTextBlobCache* getTextBlobCache() { return fTextBlobCache; } 327 GrTextBlobCache* getTextBlobCache() { return fTextBlobCache; }
328 bool abandoned() const; 328 bool abandoned() const;
329 GrResourceProvider* resourceProvider() { return fResourceProvider; } 329 GrResourceProvider* resourceProvider() { return fResourceProvider; }
330 const GrResourceProvider* resourceProvider() const { return fResourceProvide r; } 330 const GrResourceProvider* resourceProvider() const { return fResourceProvide r; }
331 GrResourceCache* getResourceCache() { return fResourceCache; } 331 GrResourceCache* getResourceCache() { return fResourceCache; }
332 332
333 // Called by tests that draw directly to the context via GrDrawTarget 333 // Called by tests that draw directly to the context via GrDrawTarget
334 void getTestTarget(GrTestTarget*); 334 void getTestTarget(GrTestTarget*);
335 335
336 GrPathRenderer* getPathRenderer( 336 GrPathRenderer* getPathRenderer(
337 const GrDrawTarget* target,
338 const GrPipelineBuilder*, 337 const GrPipelineBuilder*,
339 const SkMatrix& viewMatrix, 338 const SkMatrix& viewMatrix,
340 const SkPath& path, 339 const SkPath& path,
341 const GrStrokeInfo& stroke, 340 const GrStrokeInfo& stroke,
342 bool allowSW, 341 bool allowSW,
343 GrPathRendererChain::DrawType drawType = GrPathRendererChain ::kColor_DrawType, 342 GrPathRendererChain::DrawType drawType = GrPathRendererChain ::kColor_DrawType,
344 GrPathRendererChain::StencilSupport* stencilSupport = NULL); 343 GrPathRendererChain::StencilSupport* stencilSupport = NULL);
345 344
346 /** Prints cache stats to the string if GR_CACHE_STATS == 1. */ 345 /** Prints cache stats to the string if GR_CACHE_STATS == 1. */
347 void dumpCacheStats(SkString*) const; 346 void dumpCacheStats(SkString*) const;
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 /** 440 /**
442 * A callback similar to the above for use by the TextBlobCache 441 * A callback similar to the above for use by the TextBlobCache
443 * TODO move textblob draw calls below context so we can use the call above. 442 * TODO move textblob draw calls below context so we can use the call above.
444 */ 443 */
445 static void TextBlobCacheOverBudgetCB(void* data); 444 static void TextBlobCacheOverBudgetCB(void* data);
446 445
447 typedef SkRefCnt INHERITED; 446 typedef SkRefCnt INHERITED;
448 }; 447 };
449 448
450 #endif 449 #endif
OLDNEW
« no previous file with comments | « no previous file | include/gpu/GrDrawContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698