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

Side by Side Diff: src/gpu/gl/GrGLGpu.h

Issue 1933293002: Don't mark mipmaps dirty if uploading > 1 levels (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | src/gpu/gl/GrGLGpu.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 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 GrGLGpu_DEFINED 8 #ifndef GrGLGpu_DEFINED
9 #define GrGLGpu_DEFINED 9 #define GrGLGpu_DEFINED
10 10
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 void initStencilFormats(); 302 void initStencilFormats();
303 303
304 // sets a texture unit to use for texture operations other than binding a te xture to a program. 304 // sets a texture unit to use for texture operations other than binding a te xture to a program.
305 // ensures that such operations don't negatively interact with tracking boun d textures. 305 // ensures that such operations don't negatively interact with tracking boun d textures.
306 void setScratchTextureUnit(); 306 void setScratchTextureUnit();
307 307
308 // bounds is region that may be modified. 308 // bounds is region that may be modified.
309 // nullptr means whole target. Can be an empty rect. 309 // nullptr means whole target. Can be an empty rect.
310 void flushRenderTarget(GrGLRenderTarget*, const SkIRect* bounds, bool disabl eSRGB = false); 310 void flushRenderTarget(GrGLRenderTarget*, const SkIRect* bounds, bool disabl eSRGB = false);
311 // Handles cases where a surface will be updated without a call to flushRend erTarget 311 // Handles cases where a surface will be updated without a call to flushRend erTarget
312 void didWriteToSurface(GrSurface*, const SkIRect* bounds) const; 312 void didWriteToSurface(GrSurface*, const SkIRect* bounds, int mipLevels = 1) const;
313 313
314 // Need not be called if flushRenderTarget is used. 314 // Need not be called if flushRenderTarget is used.
315 void flushViewport(const GrGLIRect&); 315 void flushViewport(const GrGLIRect&);
316 316
317 void flushStencil(const GrStencilSettings&); 317 void flushStencil(const GrStencilSettings&);
318 318
319 // rt is used only if useHWAA is true. 319 // rt is used only if useHWAA is true.
320 void flushHWAAState(GrRenderTarget* rt, bool useHWAA, bool stencilEnabled); 320 void flushHWAAState(GrRenderTarget* rt, bool useHWAA, bool stencilEnabled);
321 321
322 void flushMinSampleShading(float minSampleShading); 322 void flushMinSampleShading(float minSampleShading);
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 bool fHWPLSEnabled; 564 bool fHWPLSEnabled;
565 bool fPLSHasBeenUsed; 565 bool fPLSHasBeenUsed;
566 566
567 float fHWMinSampleShading; 567 float fHWMinSampleShading;
568 568
569 typedef GrGpu INHERITED; 569 typedef GrGpu INHERITED;
570 friend class GrGLPathRendering; // For accessing setTextureUnit. 570 friend class GrGLPathRendering; // For accessing setTextureUnit.
571 }; 571 };
572 572
573 #endif 573 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/gl/GrGLGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698