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

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

Issue 2294533002: Add some copy support for vulkan msaa (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Update initDesc name Created 4 years, 3 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/GrGpu.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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 void generateMipmaps(const GrTextureParams& params, bool allowSRGBInputs, Gr GLTexture* texture); 64 void generateMipmaps(const GrTextureParams& params, bool allowSRGBInputs, Gr GLTexture* texture);
65 65
66 bool onGetReadPixelsInfo(GrSurface* srcSurface, int readWidth, int readHeigh t, size_t rowBytes, 66 bool onGetReadPixelsInfo(GrSurface* srcSurface, int readWidth, int readHeigh t, size_t rowBytes,
67 GrPixelConfig readConfig, DrawPreference*, 67 GrPixelConfig readConfig, DrawPreference*,
68 ReadPixelTempDrawInfo*) override; 68 ReadPixelTempDrawInfo*) override;
69 69
70 bool onGetWritePixelsInfo(GrSurface* dstSurface, int width, int height, 70 bool onGetWritePixelsInfo(GrSurface* dstSurface, int width, int height,
71 GrPixelConfig srcConfig, DrawPreference*, 71 GrPixelConfig srcConfig, DrawPreference*,
72 WritePixelTempDrawInfo*) override; 72 WritePixelTempDrawInfo*) override;
73 73
74 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const override; 74 bool initDescForDstCopy(const GrRenderTarget* src, GrSurfaceDesc* desc) cons t override;
75 75
76 // These functions should be used to bind GL objects. They track the GL stat e and skip redundant 76 // These functions should be used to bind GL objects. They track the GL stat e and skip redundant
77 // bindings. Making the equivalent glBind calls directly will confuse the st ate tracking. 77 // bindings. Making the equivalent glBind calls directly will confuse the st ate tracking.
78 void bindVertexArray(GrGLuint id) { 78 void bindVertexArray(GrGLuint id) {
79 fHWVertexArrayState.setVertexArrayID(this, id); 79 fHWVertexArrayState.setVertexArrayID(this, id);
80 } 80 }
81 81
82 // These callbacks update state tracking when GL objects are deleted. They a re called from 82 // These callbacks update state tracking when GL objects are deleted. They a re called from
83 // GrGLResource onRelease functions. 83 // GrGLResource onRelease functions.
84 void notifyVertexArrayDelete(GrGLuint id) { 84 void notifyVertexArrayDelete(GrGLuint id) {
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 bool fPLSHasBeenUsed; 635 bool fPLSHasBeenUsed;
636 636
637 float fHWMinSampleShading; 637 float fHWMinSampleShading;
638 638
639 typedef GrGpu INHERITED; 639 typedef GrGpu INHERITED;
640 friend class GrGLPathRendering; // For accessing setTextureUnit. 640 friend class GrGLPathRendering; // For accessing setTextureUnit.
641 friend class gr_instanced::GLInstancedRendering; // For accessing flushGLSta te. 641 friend class gr_instanced::GLInstancedRendering; // For accessing flushGLSta te.
642 }; 642 };
643 643
644 #endif 644 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrGpu.h ('k') | src/gpu/gl/GrGLGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698