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

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

Issue 2111423002: Fix caching of sample locations (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Some chrome bots don't have map::emplace. Created 4 years, 5 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/GrRenderTargetPriv.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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 GrPixelConfig config, GrBuffer* transferBuffer, 213 GrPixelConfig config, GrBuffer* transferBuffer,
214 size_t offset, size_t rowBytes) override; 214 size_t offset, size_t rowBytes) override;
215 215
216 void onResolveRenderTarget(GrRenderTarget* target) override; 216 void onResolveRenderTarget(GrRenderTarget* target) override;
217 217
218 bool onCopySurface(GrSurface* dst, 218 bool onCopySurface(GrSurface* dst,
219 GrSurface* src, 219 GrSurface* src,
220 const SkIRect& srcRect, 220 const SkIRect& srcRect,
221 const SkIPoint& dstPoint) override; 221 const SkIPoint& dstPoint) override;
222 222
223 void onGetMultisampleSpecs(GrRenderTarget*, 223 void onGetMultisampleSpecs(GrRenderTarget*, const GrStencilSettings&,
224 const GrStencilSettings&, 224 int* effectiveSampleCnt, SamplePattern*) override ;
225 int* effectiveSampleCnt,
226 SkAutoTDeleteArray<SkPoint>* sampleLocations) ove rride;
227 225
228 // binds texture unit in GL 226 // binds texture unit in GL
229 void setTextureUnit(int unitIdx); 227 void setTextureUnit(int unitIdx);
230 228
231 void setTextureSwizzle(int unitIdx, GrGLenum target, const GrGLenum swizzle[ ]); 229 void setTextureSwizzle(int unitIdx, GrGLenum target, const GrGLenum swizzle[ ]);
232 230
233 // Flushes state from GrPipeline to GL. Returns false if the state couldn't be set. 231 // Flushes state from GrPipeline to GL. Returns false if the state couldn't be set.
234 bool flushGLState(const GrPipeline& pipeline, const GrPrimitiveProcessor& pr imProc); 232 bool flushGLState(const GrPipeline& pipeline, const GrPrimitiveProcessor& pr imProc);
235 233
236 // Sets up vertex attribute pointers and strides. On return indexOffsetInByt es gives the offset 234 // Sets up vertex attribute pointers and strides. On return indexOffsetInByt es gives the offset
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 bool fPLSHasBeenUsed; 596 bool fPLSHasBeenUsed;
599 597
600 float fHWMinSampleShading; 598 float fHWMinSampleShading;
601 599
602 typedef GrGpu INHERITED; 600 typedef GrGpu INHERITED;
603 friend class GrGLPathRendering; // For accessing setTextureUnit. 601 friend class GrGLPathRendering; // For accessing setTextureUnit.
604 friend class gr_instanced::GLInstancedRendering; // For accessing flushGLSta te. 602 friend class gr_instanced::GLInstancedRendering; // For accessing flushGLSta te.
605 }; 603 };
606 604
607 #endif 605 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrRenderTargetPriv.h ('k') | src/gpu/gl/GrGLGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698