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

Side by Side Diff: src/gpu/GrGpu.h

Issue 1040303002: Use texture barriers to read directly from the RT (Closed) Base URL: https://skia.googlesource.com/skia.git@upload_zz1_reverseiter
Patch Set: fix windows build Created 5 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 | « src/gpu/GrDrawTarget.cpp ('k') | src/gpu/GrTargetCommands.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 2011 Google Inc. 2 * Copyright 2011 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 GrGpu_DEFINED 8 #ifndef GrGpu_DEFINED
9 #define GrGpu_DEFINED 9 #define GrGpu_DEFINED
10 10
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 297
298 // Called to perform a surface to surface copy. Fallbacks to issuing a draw from the src to dst 298 // Called to perform a surface to surface copy. Fallbacks to issuing a draw from the src to dst
299 // take place at the GrDrawTarget level and this function implement faster c opy paths. The rect 299 // take place at the GrDrawTarget level and this function implement faster c opy paths. The rect
300 // and point are pre-clipped. The src rect and implied dst rect are guarante ed to be within the 300 // and point are pre-clipped. The src rect and implied dst rect are guarante ed to be within the
301 // src/dst bounds and non-empty. 301 // src/dst bounds and non-empty.
302 virtual bool copySurface(GrSurface* dst, 302 virtual bool copySurface(GrSurface* dst,
303 GrSurface* src, 303 GrSurface* src,
304 const SkIRect& srcRect, 304 const SkIRect& srcRect,
305 const SkIPoint& dstPoint) = 0; 305 const SkIPoint& dstPoint) = 0;
306 306
307 // Called before certain draws in order to guarantee coherent results from d st reads.
308 virtual void xferBarrier(GrXferBarrierType) = 0;
309
307 struct DrawArgs { 310 struct DrawArgs {
308 typedef GrDrawTarget::DrawInfo DrawInfo; 311 typedef GrDrawTarget::DrawInfo DrawInfo;
309 DrawArgs(const GrPrimitiveProcessor* primProc, 312 DrawArgs(const GrPrimitiveProcessor* primProc,
310 const GrPipeline* pipeline, 313 const GrPipeline* pipeline,
311 const GrProgramDesc* desc, 314 const GrProgramDesc* desc,
312 const GrBatchTracker* batchTracker) 315 const GrBatchTracker* batchTracker)
313 : fPrimitiveProcessor(primProc) 316 : fPrimitiveProcessor(primProc)
314 , fPipeline(pipeline) 317 , fPipeline(pipeline)
315 , fDesc(desc) 318 , fDesc(desc)
316 , fBatchTracker(batchTracker) { 319 , fBatchTracker(batchTracker) {
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 int fGpuTrac eMarkerCount; 526 int fGpuTrac eMarkerCount;
524 GrTraceMarkerSet fActiveT raceMarkers; 527 GrTraceMarkerSet fActiveT raceMarkers;
525 GrTraceMarkerSet fStoredT raceMarkers; 528 GrTraceMarkerSet fStoredT raceMarkers;
526 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. 529 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu.
527 GrContext* fContext ; 530 GrContext* fContext ;
528 531
529 typedef SkRefCnt INHERITED; 532 typedef SkRefCnt INHERITED;
530 }; 533 };
531 534
532 #endif 535 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrDrawTarget.cpp ('k') | src/gpu/GrTargetCommands.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698