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

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

Issue 885923002: Move DstCopy on gpu into the GrXferProcessor. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Back to bool Created 5 years, 10 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/GrInOrderDrawBuffer.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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 // This timestamp is always older than the current timestamp 291 // This timestamp is always older than the current timestamp
292 static const ResetTimestamp kExpiredTimestamp = 0; 292 static const ResetTimestamp kExpiredTimestamp = 0;
293 // Returns a timestamp based on the number of times the context was reset. 293 // Returns a timestamp based on the number of times the context was reset.
294 // This timestamp can be used to lazily detect when cached 3D context state 294 // This timestamp can be used to lazily detect when cached 3D context state
295 // is dirty. 295 // is dirty.
296 ResetTimestamp getResetTimestamp() const { return fResetTimestamp; } 296 ResetTimestamp getResetTimestamp() const { return fResetTimestamp; }
297 297
298 virtual void buildProgramDesc(GrProgramDesc*, 298 virtual void buildProgramDesc(GrProgramDesc*,
299 const GrPrimitiveProcessor&, 299 const GrPrimitiveProcessor&,
300 const GrPipeline&, 300 const GrPipeline&,
301 const GrProgramDesc::DescInfo&,
302 const GrBatchTracker&) const = 0; 301 const GrBatchTracker&) const = 0;
303 302
304 // Called to determine whether a copySurface call would succeed or not. Deri ved 303 // Called to determine whether a copySurface call would succeed or not. Deri ved
305 // classes must keep this consistent with their implementation of onCopySurf ace(). Fallbacks 304 // classes must keep this consistent with their implementation of onCopySurf ace(). Fallbacks
306 // to issuing a draw from the src to dst take place at the GrDrawTarget leve l and this function 305 // to issuing a draw from the src to dst take place at the GrDrawTarget leve l and this function
307 // should only return true if a faster copy path exists. The rect and point are pre-clipped. The 306 // should only return true if a faster copy path exists. The rect and point are pre-clipped. The
308 // src rect and implied dst rect are guaranteed to be within the src/dst bou nds and non-empty. 307 // src rect and implied dst rect are guaranteed to be within the src/dst bou nds and non-empty.
309 virtual bool canCopySurface(const GrSurface* dst, 308 virtual bool canCopySurface(const GrSurface* dst,
310 const GrSurface* src, 309 const GrSurface* src,
311 const SkIRect& srcRect, 310 const SkIRect& srcRect,
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 int fGpuTrac eMarkerCount; 531 int fGpuTrac eMarkerCount;
533 GrTraceMarkerSet fActiveT raceMarkers; 532 GrTraceMarkerSet fActiveT raceMarkers;
534 GrTraceMarkerSet fStoredT raceMarkers; 533 GrTraceMarkerSet fStoredT raceMarkers;
535 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. 534 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu.
536 GrContext* fContext ; 535 GrContext* fContext ;
537 536
538 typedef SkRefCnt INHERITED; 537 typedef SkRefCnt INHERITED;
539 }; 538 };
540 539
541 #endif 540 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrDrawTarget.cpp ('k') | src/gpu/GrInOrderDrawBuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698