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

Side by Side Diff: src/gpu/gl/GrGLCreateNullInterface.cpp

Issue 1817793002: Fix uninitialized fCurrProgramID in GrGLCreateNullInterface (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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 | « no previous file | no next file » | 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 8
9 #include "gl/GrGLInterface.h" 9 #include "gl/GrGLInterface.h"
10 #include "GrGLTestInterface.h" 10 #include "GrGLTestInterface.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 }; 107 };
108 108
109 /** Null interface implementation */ 109 /** Null interface implementation */
110 class NullInterface : public GrGLTestInterface { 110 class NullInterface : public GrGLTestInterface {
111 public: 111 public:
112 NullInterface() 112 NullInterface()
113 : fCurrArrayBuffer(0) 113 : fCurrArrayBuffer(0)
114 , fCurrElementArrayBuffer(0) 114 , fCurrElementArrayBuffer(0)
115 , fCurrPixelPackBuffer(0) 115 , fCurrPixelPackBuffer(0)
116 , fCurrPixelUnpackBuffer(0) 116 , fCurrPixelUnpackBuffer(0)
117 , fCurrProgramID(0)
117 , fCurrShaderID(0) 118 , fCurrShaderID(0)
118 , fCurrGenericID(0) 119 , fCurrGenericID(0)
119 , fCurrUniformLocation(0) { 120 , fCurrUniformLocation(0) {
120 this->init(kGL_GrGLStandard); 121 this->init(kGL_GrGLStandard);
121 } 122 }
122 123
123 GrGLenum checkFramebufferStatus(GrGLenum target) override { 124 GrGLenum checkFramebufferStatus(GrGLenum target) override {
124 return GR_GL_FRAMEBUFFER_COMPLETE; 125 return GR_GL_FRAMEBUFFER_COMPLETE;
125 } 126 }
126 127
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 "GL_ARB_timer_query", 606 "GL_ARB_timer_query",
606 "GL_ARB_draw_buffers", 607 "GL_ARB_draw_buffers",
607 "GL_ARB_occlusion_query", 608 "GL_ARB_occlusion_query",
608 "GL_EXT_stencil_wrap", 609 "GL_EXT_stencil_wrap",
609 nullptr, // signifies the end of the array. 610 nullptr, // signifies the end of the array.
610 }; 611 };
611 612
612 } // anonymous namespace 613 } // anonymous namespace
613 614
614 const GrGLInterface* GrGLCreateNullInterface() { return new NullInterface; } 615 const GrGLInterface* GrGLCreateNullInterface() { return new NullInterface; }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698