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

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

Issue 851143003: Remove willReadDst from GrFragmentProcessor. (Closed) Base URL: https://skia.googlesource.com/skia.git@xferXP
Patch Set: Rebase Created 5 years, 11 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/GrDrawState.cpp ('k') | src/gpu/GrDrawTarget.cpp » ('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 GrDrawTarget_DEFINED 8 #ifndef GrDrawTarget_DEFINED
9 #define GrDrawTarget_DEFINED 9 #define GrDrawTarget_DEFINED
10 10
(...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 654
655 // Subclass must initialize this in its constructor. 655 // Subclass must initialize this in its constructor.
656 SkAutoTUnref<const GrDrawTargetCaps> fCaps; 656 SkAutoTUnref<const GrDrawTargetCaps> fCaps;
657 657
658 const GrTraceMarkerSet& getActiveTraceMarkers() { return fActiveTraceMarkers ; } 658 const GrTraceMarkerSet& getActiveTraceMarkers() { return fActiveTraceMarkers ; }
659 659
660 // Makes a copy of the dst if it is necessary for the draw. Returns false if a copy is required 660 // Makes a copy of the dst if it is necessary for the draw. Returns false if a copy is required
661 // but couldn't be made. Otherwise, returns true. This method needs to be p rotected because it 661 // but couldn't be made. Otherwise, returns true. This method needs to be p rotected because it
662 // needs to be accessed by GLPrograms to setup a correct drawstate 662 // needs to be accessed by GLPrograms to setup a correct drawstate
663 bool setupDstReadIfNecessary(GrDrawState*, 663 bool setupDstReadIfNecessary(GrDrawState*,
664 const GrPrimitiveProcessor*,
665 GrDeviceCoordTexture* dstCopy, 664 GrDeviceCoordTexture* dstCopy,
666 const SkRect* drawBounds); 665 const SkRect* drawBounds);
667 666
668 private: 667 private:
669 /** 668 /**
670 * This will be called before allocating a texture as a dst for copySurface. This function 669 * This will be called before allocating a texture as a dst for copySurface. This function
671 * populates the dstDesc's config, flags, and origin so as to maximize effic iency and guarantee 670 * populates the dstDesc's config, flags, and origin so as to maximize effic iency and guarantee
672 * success of the copySurface call. 671 * success of the copySurface call.
673 */ 672 */
674 void initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* dstDesc) { 673 void initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* dstDesc) {
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
852 virtual bool setupClip(GrDrawState*, 851 virtual bool setupClip(GrDrawState*,
853 GrDrawState::AutoRestoreEffects* are, 852 GrDrawState::AutoRestoreEffects* are,
854 GrDrawState::AutoRestoreStencil* ars, 853 GrDrawState::AutoRestoreStencil* ars,
855 GrScissorState* scissorState, 854 GrScissorState* scissorState,
856 const SkRect* devBounds) SK_OVERRIDE; 855 const SkRect* devBounds) SK_OVERRIDE;
857 856
858 typedef GrDrawTarget INHERITED; 857 typedef GrDrawTarget INHERITED;
859 }; 858 };
860 859
861 #endif 860 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrDrawState.cpp ('k') | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698