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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder_unittest_1.cc

Issue 1412613004: Set attachment for bound framebuffer in FramebufferTextureLayer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix WebGLTextureAttachment::attach 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h"
6 6
7 #include "gpu/command_buffer/common/gles2_cmd_format.h" 7 #include "gpu/command_buffer/common/gles2_cmd_format.h"
8 #include "gpu/command_buffer/common/gles2_cmd_utils.h" 8 #include "gpu/command_buffer/common/gles2_cmd_utils.h"
9 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h" 9 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h"
10 #include "gpu/command_buffer/service/cmd_buffer_engine.h" 10 #include "gpu/command_buffer/service/cmd_buffer_engine.h"
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 kServiceFramebufferId); 136 kServiceFramebufferId);
137 if (valid) { 137 if (valid) {
138 EXPECT_CALL(*gl_, GetError()) 138 EXPECT_CALL(*gl_, GetError())
139 .WillOnce(Return(GL_NO_ERROR)) 139 .WillOnce(Return(GL_NO_ERROR))
140 .WillOnce(Return(GL_NO_ERROR)) 140 .WillOnce(Return(GL_NO_ERROR))
141 .RetiresOnSaturation(); 141 .RetiresOnSaturation();
142 } 142 }
143 }; 143 };
144 144
145 template <> 145 template <>
146 void GLES2DecoderTestBase::SpecializedSetup<cmds::FramebufferTextureLayer, 0>(
147 bool valid) {
148 DoBindFramebuffer(GL_FRAMEBUFFER, client_framebuffer_id_,
149 kServiceFramebufferId);
150 if (valid) {
151 EXPECT_CALL(*gl_, GetError())
152 .WillOnce(Return(GL_NO_ERROR))
153 .WillOnce(Return(GL_NO_ERROR))
154 .RetiresOnSaturation();
155 }
156 };
157
158 template <>
146 void GLES2DecoderTestBase::SpecializedSetup< 159 void GLES2DecoderTestBase::SpecializedSetup<
147 cmds::GetBufferParameteri64v, 0>(bool /* valid */) { 160 cmds::GetBufferParameteri64v, 0>(bool /* valid */) {
148 DoBindBuffer(GL_ARRAY_BUFFER, client_buffer_id_, kServiceBufferId); 161 DoBindBuffer(GL_ARRAY_BUFFER, client_buffer_id_, kServiceBufferId);
149 }; 162 };
150 163
151 template <> 164 template <>
152 void GLES2DecoderTestBase::SpecializedSetup< 165 void GLES2DecoderTestBase::SpecializedSetup<
153 cmds::GetBufferParameteriv, 0>(bool /* valid */) { 166 cmds::GetBufferParameteriv, 0>(bool /* valid */) {
154 DoBindBuffer(GL_ARRAY_BUFFER, client_buffer_id_, kServiceBufferId); 167 DoBindBuffer(GL_ARRAY_BUFFER, client_buffer_id_, kServiceBufferId);
155 }; 168 };
(...skipping 18 matching lines...) Expand all
174 .WillOnce(Return(GL_NO_ERROR)) 187 .WillOnce(Return(GL_NO_ERROR))
175 .RetiresOnSaturation(); 188 .RetiresOnSaturation();
176 } 189 }
177 } 190 }
178 191
179 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h" 192 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h"
180 193
181 } // namespace gles2 194 } // namespace gles2
182 } // namespace gpu 195 } // namespace gpu
183 196
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698