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

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

Issue 1137663004: Don't issue texture barriers for RT's with separate storage (Closed) Base URL: https://skia.googlesource.com/skia.git@upload_oreq
Patch Set: rebase 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/GrCommandBuilder.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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 // Called to perform a surface to surface copy. Fallbacks to issuing a draw from the src to dst 270 // Called to perform a surface to surface copy. Fallbacks to issuing a draw from the src to dst
271 // take place at the GrDrawTarget level and this function implement faster c opy paths. The rect 271 // take place at the GrDrawTarget level and this function implement faster c opy paths. The rect
272 // and point are pre-clipped. The src rect and implied dst rect are guarante ed to be within the 272 // and point are pre-clipped. The src rect and implied dst rect are guarante ed to be within the
273 // src/dst bounds and non-empty. 273 // src/dst bounds and non-empty.
274 virtual bool copySurface(GrSurface* dst, 274 virtual bool copySurface(GrSurface* dst,
275 GrSurface* src, 275 GrSurface* src,
276 const SkIRect& srcRect, 276 const SkIRect& srcRect,
277 const SkIPoint& dstPoint) = 0; 277 const SkIPoint& dstPoint) = 0;
278 278
279 // Called before certain draws in order to guarantee coherent results from d st reads. 279 // Called before certain draws in order to guarantee coherent results from d st reads.
280 virtual void xferBarrier(GrXferBarrierType) = 0; 280 virtual void xferBarrier(GrRenderTarget*, GrXferBarrierType) = 0;
281 281
282 struct DrawArgs { 282 struct DrawArgs {
283 DrawArgs(const GrPrimitiveProcessor* primProc, 283 DrawArgs(const GrPrimitiveProcessor* primProc,
284 const GrPipeline* pipeline, 284 const GrPipeline* pipeline,
285 const GrProgramDesc* desc, 285 const GrProgramDesc* desc,
286 const GrBatchTracker* batchTracker) 286 const GrBatchTracker* batchTracker)
287 : fPrimitiveProcessor(primProc) 287 : fPrimitiveProcessor(primProc)
288 , fPipeline(pipeline) 288 , fPipeline(pipeline)
289 , fDesc(desc) 289 , fDesc(desc)
290 , fBatchTracker(batchTracker) { 290 , fBatchTracker(batchTracker) {
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 int fGpuTrac eMarkerCount; 495 int fGpuTrac eMarkerCount;
496 GrTraceMarkerSet fActiveT raceMarkers; 496 GrTraceMarkerSet fActiveT raceMarkers;
497 GrTraceMarkerSet fStoredT raceMarkers; 497 GrTraceMarkerSet fStoredT raceMarkers;
498 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. 498 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu.
499 GrContext* fContext ; 499 GrContext* fContext ;
500 500
501 typedef SkRefCnt INHERITED; 501 typedef SkRefCnt INHERITED;
502 }; 502 };
503 503
504 #endif 504 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrCommandBuilder.cpp ('k') | src/gpu/GrTargetCommands.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698