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

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

Issue 900883002: Revert of Move DstCopy on gpu into the GrXferProcessor. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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&,
301 const GrBatchTracker&) const = 0; 302 const GrBatchTracker&) const = 0;
302 303
303 // Called to determine whether a copySurface call would succeed or not. Deri ved 304 // Called to determine whether a copySurface call would succeed or not. Deri ved
304 // classes must keep this consistent with their implementation of onCopySurf ace(). Fallbacks 305 // classes must keep this consistent with their implementation of onCopySurf ace(). Fallbacks
305 // to issuing a draw from the src to dst take place at the GrDrawTarget leve l and this function 306 // to issuing a draw from the src to dst take place at the GrDrawTarget leve l and this function
306 // should only return true if a faster copy path exists. The rect and point are pre-clipped. The 307 // should only return true if a faster copy path exists. The rect and point are pre-clipped. The
307 // src rect and implied dst rect are guaranteed to be within the src/dst bou nds and non-empty. 308 // src rect and implied dst rect are guaranteed to be within the src/dst bou nds and non-empty.
308 virtual bool canCopySurface(const GrSurface* dst, 309 virtual bool canCopySurface(const GrSurface* dst,
309 const GrSurface* src, 310 const GrSurface* src,
310 const SkIRect& srcRect, 311 const SkIRect& srcRect,
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 int fGpuTrac eMarkerCount; 532 int fGpuTrac eMarkerCount;
532 GrTraceMarkerSet fActiveT raceMarkers; 533 GrTraceMarkerSet fActiveT raceMarkers;
533 GrTraceMarkerSet fStoredT raceMarkers; 534 GrTraceMarkerSet fStoredT raceMarkers;
534 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. 535 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu.
535 GrContext* fContext ; 536 GrContext* fContext ;
536 537
537 typedef SkRefCnt INHERITED; 538 typedef SkRefCnt INHERITED;
538 }; 539 };
539 540
540 #endif 541 #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