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

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

Issue 1750123002: Upgrade Tex{Sub}Image{2|3}D to handle ES3 unpack parameters. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.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
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_unittest_base.h" 5 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 1958 matching lines...) Expand 10 before | Expand all | Expand 10 after
1969 if (es3_capable) { 1969 if (es3_capable) {
1970 EXPECT_CALL(*gl_, PixelStorei(GL_PACK_ROW_LENGTH, 0)) 1970 EXPECT_CALL(*gl_, PixelStorei(GL_PACK_ROW_LENGTH, 0))
1971 .Times(1) 1971 .Times(1)
1972 .RetiresOnSaturation(); 1972 .RetiresOnSaturation();
1973 EXPECT_CALL(*gl_, PixelStorei(GL_UNPACK_ROW_LENGTH, 0)) 1973 EXPECT_CALL(*gl_, PixelStorei(GL_UNPACK_ROW_LENGTH, 0))
1974 .Times(1) 1974 .Times(1)
1975 .RetiresOnSaturation(); 1975 .RetiresOnSaturation();
1976 EXPECT_CALL(*gl_, PixelStorei(GL_UNPACK_IMAGE_HEIGHT, 0)) 1976 EXPECT_CALL(*gl_, PixelStorei(GL_UNPACK_IMAGE_HEIGHT, 0))
1977 .Times(1) 1977 .Times(1)
1978 .RetiresOnSaturation(); 1978 .RetiresOnSaturation();
1979 EXPECT_CALL(*gl_, PixelStorei(GL_UNPACK_SKIP_PIXELS, 0))
1980 .Times(1)
1981 .RetiresOnSaturation();
1982 EXPECT_CALL(*gl_, PixelStorei(GL_UNPACK_SKIP_ROWS, 0))
1983 .Times(1)
1984 .RetiresOnSaturation();
1985 EXPECT_CALL(*gl_, PixelStorei(GL_UNPACK_SKIP_IMAGES, 0))
1986 .Times(1)
1987 .RetiresOnSaturation();
1988 } 1979 }
1989 } 1980 }
1990 1981
1991 GLES2DecoderWithShaderTestBase::MockCommandBufferEngine:: 1982 GLES2DecoderWithShaderTestBase::MockCommandBufferEngine::
1992 MockCommandBufferEngine() { 1983 MockCommandBufferEngine() {
1993 1984
1994 scoped_ptr<base::SharedMemory> shm(new base::SharedMemory()); 1985 scoped_ptr<base::SharedMemory> shm(new base::SharedMemory());
1995 shm->CreateAndMapAnonymous(kSharedBufferSize); 1986 shm->CreateAndMapAnonymous(kSharedBufferSize);
1996 valid_buffer_ = MakeBufferFromSharedMemory(std::move(shm), kSharedBufferSize); 1987 valid_buffer_ = MakeBufferFromSharedMemory(std::move(shm), kSharedBufferSize);
1997 1988
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
2035 SetupDefaultProgram(); 2026 SetupDefaultProgram();
2036 } 2027 }
2037 2028
2038 // Include the auto-generated part of this file. We split this because it means 2029 // Include the auto-generated part of this file. We split this because it means
2039 // we can easily edit the non-auto generated parts right here in this file 2030 // we can easily edit the non-auto generated parts right here in this file
2040 // instead of having to edit some template or the code generator. 2031 // instead of having to edit some template or the code generator.
2041 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h" 2032 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h"
2042 2033
2043 } // namespace gles2 2034 } // namespace gles2
2044 } // namespace gpu 2035 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698