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

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

Issue 1690053002: Revert of Make copySurface work for texture dsts, return a bool, & add unit test. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 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/GrDrawContext.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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 /** 137 /**
138 * Copies a pixel rectangle from one surface to another. This call may final ize 138 * Copies a pixel rectangle from one surface to another. This call may final ize
139 * reserved vertex/index data (as though a draw call was made). The src pixe ls 139 * reserved vertex/index data (as though a draw call was made). The src pixe ls
140 * copied are specified by srcRect. They are copied to a rect of the same 140 * copied are specified by srcRect. They are copied to a rect of the same
141 * size in dst with top left at dstPoint. If the src rect is clipped by the 141 * size in dst with top left at dstPoint. If the src rect is clipped by the
142 * src bounds then pixel values in the dst rect corresponding to area clipp ed 142 * src bounds then pixel values in the dst rect corresponding to area clipp ed
143 * by the src rect are not overwritten. This method is not guaranteed to suc ceed 143 * by the src rect are not overwritten. This method is not guaranteed to suc ceed
144 * depending on the type of surface, configs, etc, and the backend-specific 144 * depending on the type of surface, configs, etc, and the backend-specific
145 * limitations. 145 * limitations.
146 */ 146 */
147 bool copySurface(GrSurface* dst, 147 void copySurface(GrSurface* dst,
148 GrSurface* src, 148 GrSurface* src,
149 const SkIRect& srcRect, 149 const SkIRect& srcRect,
150 const SkIPoint& dstPoint); 150 const SkIPoint& dstPoint);
151 151
152 /** Provides access to internal functions to GrClipMaskManager without frien ding all of 152 /** Provides access to internal functions to GrClipMaskManager without frien ding all of
153 GrDrawTarget to CMM. */ 153 GrDrawTarget to CMM. */
154 class CMMAccess { 154 class CMMAccess {
155 public: 155 public:
156 CMMAccess(GrDrawTarget* drawTarget) : fDrawTarget(drawTarget) {} 156 CMMAccess(GrDrawTarget* drawTarget) : fDrawTarget(drawTarget) {}
157 private: 157 private:
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 SkTDArray<GrDrawTarget*> fDependencies; 258 SkTDArray<GrDrawTarget*> fDependencies;
259 GrRenderTarget* fRenderTarget; 259 GrRenderTarget* fRenderTarget;
260 260
261 bool fDrawBatchBounds; 261 bool fDrawBatchBounds;
262 int fMaxBatchLookback; 262 int fMaxBatchLookback;
263 263
264 typedef SkRefCnt INHERITED; 264 typedef SkRefCnt INHERITED;
265 }; 265 };
266 266
267 #endif 267 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrDrawContext.cpp ('k') | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698