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

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

Issue 912413002: Pass in ProcOptInfos into willNeedDstCopy on XPs (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
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 660 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 671
672 // Subclass must initialize this in its constructor. 672 // Subclass must initialize this in its constructor.
673 SkAutoTUnref<const GrDrawTargetCaps> fCaps; 673 SkAutoTUnref<const GrDrawTargetCaps> fCaps;
674 674
675 const GrTraceMarkerSet& getActiveTraceMarkers() { return fActiveTraceMarkers ; } 675 const GrTraceMarkerSet& getActiveTraceMarkers() { return fActiveTraceMarkers ; }
676 676
677 // Makes a copy of the dst if it is necessary for the draw. Returns false if a copy is required 677 // Makes a copy of the dst if it is necessary for the draw. Returns false if a copy is required
678 // but couldn't be made. Otherwise, returns true. This method needs to be p rotected because it 678 // but couldn't be made. Otherwise, returns true. This method needs to be p rotected because it
679 // needs to be accessed by GLPrograms to setup a correct drawstate 679 // needs to be accessed by GLPrograms to setup a correct drawstate
680 bool setupDstReadIfNecessary(const GrPipelineBuilder&, 680 bool setupDstReadIfNecessary(const GrPipelineBuilder&,
681 const GrProcOptInfo& colorPOI,
682 const GrProcOptInfo& coveragePOI,
681 GrDeviceCoordTexture* dstCopy, 683 GrDeviceCoordTexture* dstCopy,
682 const SkRect* drawBounds); 684 const SkRect* drawBounds);
683 685
684 private: 686 private:
685 /** 687 /**
686 * This will be called before allocating a texture as a dst for copySurface. This function 688 * This will be called before allocating a texture as a dst for copySurface. This function
687 * populates the dstDesc's config, flags, and origin so as to maximize effic iency and guarantee 689 * populates the dstDesc's config, flags, and origin so as to maximize effic iency and guarantee
688 * success of the copySurface call. 690 * success of the copySurface call.
689 */ 691 */
690 void initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* dstDesc) { 692 void initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* dstDesc) {
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
871 virtual bool setupClip(GrPipelineBuilder*, 873 virtual bool setupClip(GrPipelineBuilder*,
872 GrPipelineBuilder::AutoRestoreEffects* are, 874 GrPipelineBuilder::AutoRestoreEffects* are,
873 GrPipelineBuilder::AutoRestoreStencil* ars, 875 GrPipelineBuilder::AutoRestoreStencil* ars,
874 GrScissorState* scissorState, 876 GrScissorState* scissorState,
875 const SkRect* devBounds) SK_OVERRIDE; 877 const SkRect* devBounds) SK_OVERRIDE;
876 878
877 typedef GrDrawTarget INHERITED; 879 typedef GrDrawTarget INHERITED;
878 }; 880 };
879 881
880 #endif 882 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698