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

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

Issue 2467593002: Move memoization of multisample specs id to GrRenderTarget (Closed)
Patch Set: Move memoization of multisample specs id to GrRenderTarget Created 4 years, 1 month 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 GrPixelConfig config, GrBuffer* transferBuffer, 218 GrPixelConfig config, GrBuffer* transferBuffer,
219 size_t offset, size_t rowBytes) override; 219 size_t offset, size_t rowBytes) override;
220 220
221 void onResolveRenderTarget(GrRenderTarget* target) override; 221 void onResolveRenderTarget(GrRenderTarget* target) override;
222 222
223 bool onCopySurface(GrSurface* dst, 223 bool onCopySurface(GrSurface* dst,
224 GrSurface* src, 224 GrSurface* src,
225 const SkIRect& srcRect, 225 const SkIRect& srcRect,
226 const SkIPoint& dstPoint) override; 226 const SkIPoint& dstPoint) override;
227 227
228 void onGetMultisampleSpecs(GrRenderTarget*, const GrStencilSettings&, 228 void onQueryMultisampleSpecs(GrRenderTarget*, const GrStencilSettings&,
229 int* effectiveSampleCnt, SamplePattern*) override ; 229 int* effectiveSampleCnt, SamplePattern*) overri de;
230 230
231 // binds texture unit in GL 231 // binds texture unit in GL
232 void setTextureUnit(int unitIdx); 232 void setTextureUnit(int unitIdx);
233 233
234 void setTextureSwizzle(int unitIdx, GrGLenum target, const GrGLenum swizzle[ ]); 234 void setTextureSwizzle(int unitIdx, GrGLenum target, const GrGLenum swizzle[ ]);
235 235
236 // Flushes state from GrPipeline to GL. Returns false if the state couldn't be set. 236 // Flushes state from GrPipeline to GL. Returns false if the state couldn't be set.
237 // willDrawPoints must be true if point primitives will be rendered after se tting the GL state. 237 // willDrawPoints must be true if point primitives will be rendered after se tting the GL state.
238 bool flushGLState(const GrPipeline&, const GrPrimitiveProcessor&, bool willD rawPoints); 238 bool flushGLState(const GrPipeline&, const GrPrimitiveProcessor&, bool willD rawPoints);
239 239
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 bool fPLSHasBeenUsed; 643 bool fPLSHasBeenUsed;
644 644
645 float fHWMinSampleShading; 645 float fHWMinSampleShading;
646 646
647 typedef GrGpu INHERITED; 647 typedef GrGpu INHERITED;
648 friend class GrGLPathRendering; // For accessing setTextureUnit. 648 friend class GrGLPathRendering; // For accessing setTextureUnit.
649 friend class gr_instanced::GLInstancedRendering; // For accessing flushGLSta te. 649 friend class gr_instanced::GLInstancedRendering; // For accessing flushGLSta te.
650 }; 650 };
651 651
652 #endif 652 #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