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/gl/GrGLGpu.h

Issue 1812223002: added support for glMinSampleShading (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: updated for Jim's change 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/GrGLDefines.h ('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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
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);
342 342
343 void flushMinSampleShading(float minSampleShading);
344
343 // helper for onCreateTexture and writeTexturePixels 345 // helper for onCreateTexture and writeTexturePixels
344 enum UploadType { 346 enum UploadType {
345 kNewTexture_UploadType, // we are creating a new texture 347 kNewTexture_UploadType, // we are creating a new texture
346 kWrite_UploadType, // we are using TexSubImage2D to copy data to an existing texture 348 kWrite_UploadType, // we are using TexSubImage2D to copy data to an existing texture
347 kTransfer_UploadType, // we are using a transfer buffer to copy dat a 349 kTransfer_UploadType, // we are using a transfer buffer to copy dat a
348 }; 350 };
349 bool uploadTexData(const GrSurfaceDesc& desc, 351 bool uploadTexData(const GrSurfaceDesc& desc,
350 GrGLenum target, 352 GrGLenum target,
351 UploadType uploadType, 353 UploadType uploadType,
352 int left, int top, int width, int height, 354 int left, int top, int width, int height,
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 614
613 struct { 615 struct {
614 GrGLuint fProgram; 616 GrGLuint fProgram;
615 GrGLint fPosXformUniform; 617 GrGLint fPosXformUniform;
616 GrGLuint fArrayBuffer; 618 GrGLuint fArrayBuffer;
617 } fPLSSetupProgram; 619 } fPLSSetupProgram;
618 620
619 bool fHWPLSEnabled; 621 bool fHWPLSEnabled;
620 bool fPLSHasBeenUsed; 622 bool fPLSHasBeenUsed;
621 623
624 float fHWMinSampleShading;
625
622 typedef GrGpu INHERITED; 626 typedef GrGpu INHERITED;
623 friend class GrGLPathRendering; // For accessing setTextureUnit. 627 friend class GrGLPathRendering; // For accessing setTextureUnit.
624 }; 628 };
625 629
626 #endif 630 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLDefines.h ('k') | src/gpu/gl/GrGLGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698