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

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

Issue 1830303002: Require sRGB write control for sRGB support. Add flag to GrPaint to suppress linear -> sRGB convers… (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Added comment to srgbSupport() Created 4 years, 9 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/gl/GrGLCaps.cpp ('k') | 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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 321
322 // determines valid stencil formats 322 // determines valid stencil formats
323 void initStencilFormats(); 323 void initStencilFormats();
324 324
325 // sets a texture unit to use for texture operations other than binding a te xture to a program. 325 // sets a texture unit to use for texture operations other than binding a te xture to a program.
326 // ensures that such operations don't negatively interact with tracking boun d textures. 326 // ensures that such operations don't negatively interact with tracking boun d textures.
327 void setScratchTextureUnit(); 327 void setScratchTextureUnit();
328 328
329 // bounds is region that may be modified. 329 // bounds is region that may be modified.
330 // nullptr means whole target. Can be an empty rect. 330 // nullptr means whole target. Can be an empty rect.
331 void flushRenderTarget(GrGLRenderTarget*, const SkIRect* bounds); 331 void flushRenderTarget(GrGLRenderTarget*, const SkIRect* bounds, bool disabl eSRGB = false);
332 // Handles cases where a surface will be updated without a call to flushRend erTarget 332 // Handles cases where a surface will be updated without a call to flushRend erTarget
333 void didWriteToSurface(GrSurface*, const SkIRect* bounds) const; 333 void didWriteToSurface(GrSurface*, const SkIRect* bounds) const;
334 334
335 // Need not be called if flushRenderTarget is used. 335 // Need not be called if flushRenderTarget is used.
336 void flushViewport(const GrGLIRect&); 336 void flushViewport(const GrGLIRect&);
337 337
338 void flushStencil(const GrStencilSettings&); 338 void flushStencil(const GrStencilSettings&);
339 339
340 // rt is used only if useHWAA is true. 340 // rt is used only if useHWAA is true.
341 void flushHWAAState(GrRenderTarget* rt, bool useHWAA, bool stencilEnabled); 341 void flushHWAAState(GrRenderTarget* rt, bool useHWAA, bool stencilEnabled);
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 } fPLSSetupProgram; 617 } fPLSSetupProgram;
618 618
619 bool fHWPLSEnabled; 619 bool fHWPLSEnabled;
620 bool fPLSHasBeenUsed; 620 bool fPLSHasBeenUsed;
621 621
622 typedef GrGpu INHERITED; 622 typedef GrGpu INHERITED;
623 friend class GrGLPathRendering; // For accessing setTextureUnit. 623 friend class GrGLPathRendering; // For accessing setTextureUnit.
624 }; 624 };
625 625
626 #endif 626 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLCaps.cpp ('k') | src/gpu/gl/GrGLGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698