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

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

Issue 1426653008: Revert of Create swizzle table inside of glsl caps (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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/gl/GrGLCaps.cpp ('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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 121
122 GrStencilAttachment* createStencilAttachmentForRenderTarget(const GrRenderTa rget* rt, 122 GrStencilAttachment* createStencilAttachmentForRenderTarget(const GrRenderTa rget* rt,
123 int width, 123 int width,
124 int height) over ride; 124 int height) over ride;
125 125
126 GrBackendObject createTestingOnlyBackendTexture(void* pixels, int w, int h, 126 GrBackendObject createTestingOnlyBackendTexture(void* pixels, int w, int h,
127 GrPixelConfig config) const override; 127 GrPixelConfig config) const override;
128 bool isTestingOnlyBackendTexture(GrBackendObject id) const override; 128 bool isTestingOnlyBackendTexture(GrBackendObject id) const override;
129 void deleteTestingOnlyBackendTexture(GrBackendObject id) const override; 129 void deleteTestingOnlyBackendTexture(GrBackendObject id) const override;
130 130
131 /** If texture swizzling is available using tex parameters then it is prefer red over mangling
132 the generated shader code. This potentially allows greater reuse of cach ed shaders. */
133 static const GrGLenum* GetTexParamSwizzle(GrPixelConfig config, const GrGLCa ps& caps);
134
135
131 private: 136 private:
132 GrGLGpu(GrGLContext* ctx, GrContext* context); 137 GrGLGpu(GrGLContext* ctx, GrContext* context);
133 138
134 // GrGpu overrides 139 // GrGpu overrides
135 void onResetContext(uint32_t resetBits) override; 140 void onResetContext(uint32_t resetBits) override;
136 141
137 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override; 142 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override;
138 143
139 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc le lifeCycle, 144 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc le lifeCycle,
140 const void* srcData, size_t rowBytes) override; 145 const void* srcData, size_t rowBytes) override;
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 526
522 // Mapping of pixel configs to known supported stencil formats to be used 527 // Mapping of pixel configs to known supported stencil formats to be used
523 // when adding a stencil buffer to a framebuffer. 528 // when adding a stencil buffer to a framebuffer.
524 int fPixelConfigToStencilIndex[kGrPixelConfigCnt]; 529 int fPixelConfigToStencilIndex[kGrPixelConfigCnt];
525 530
526 typedef GrGpu INHERITED; 531 typedef GrGpu INHERITED;
527 friend class GrGLPathRendering; // For accessing setTextureUnit. 532 friend class GrGLPathRendering; // For accessing setTextureUnit.
528 }; 533 };
529 534
530 #endif 535 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLCaps.cpp ('k') | src/gpu/gl/GrGLGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698