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

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

Issue 1717393002: Add "sample locations" feature to GrProcessor (Closed) Base URL: https://skia.googlesource.com/skia.git@upload_getmultisamp
Patch Set: assert 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
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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 211
212 void onResolveRenderTarget(GrRenderTarget* target) override; 212 void onResolveRenderTarget(GrRenderTarget* target) override;
213 213
214 void onDraw(const DrawArgs&, const GrNonInstancedVertices&) override; 214 void onDraw(const DrawArgs&, const GrNonInstancedVertices&) override;
215 215
216 bool onCopySurface(GrSurface* dst, 216 bool onCopySurface(GrSurface* dst,
217 GrSurface* src, 217 GrSurface* src,
218 const SkIRect& srcRect, 218 const SkIRect& srcRect,
219 const SkIPoint& dstPoint) override; 219 const SkIPoint& dstPoint) override;
220 220
221 void onGetMultisampleSpecs(GrRenderTarget*,
222 const GrStencilSettings&,
223 int* effectiveSampleCnt,
224 SamplePattern*) override;
225
221 // binds texture unit in GL 226 // binds texture unit in GL
222 void setTextureUnit(int unitIdx); 227 void setTextureUnit(int unitIdx);
223 228
224 // Flushes state from GrPipeline to GL. Returns false if the state couldn't be set. 229 // Flushes state from GrPipeline to GL. Returns false if the state couldn't be set.
225 bool flushGLState(const DrawArgs&); 230 bool flushGLState(const DrawArgs&);
226 231
227 // Sets up vertex attribute pointers and strides. On return indexOffsetInByt es gives the offset 232 // Sets up vertex attribute pointers and strides. On return indexOffsetInByt es gives the offset
228 // an into the index buffer. It does not account for vertices.startIndex() b ut rather the start 233 // an into the index buffer. It does not account for vertices.startIndex() b ut rather the start
229 // index is relative to the returned offset. 234 // index is relative to the returned offset.
230 void setupGeometry(const GrPrimitiveProcessor&, 235 void setupGeometry(const GrPrimitiveProcessor&,
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 } fPLSSetupProgram; 609 } fPLSSetupProgram;
605 610
606 bool fHWPLSEnabled; 611 bool fHWPLSEnabled;
607 bool fPLSHasBeenUsed; 612 bool fPLSHasBeenUsed;
608 613
609 typedef GrGpu INHERITED; 614 typedef GrGpu INHERITED;
610 friend class GrGLPathRendering; // For accessing setTextureUnit. 615 friend class GrGLPathRendering; // For accessing setTextureUnit.
611 }; 616 };
612 617
613 #endif 618 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698