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

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

Issue 2482673002: fix --show-composited-layer-borders on Mac (Closed)
Patch Set: test fixed Created 4 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 | « gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h ('k') | 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 // 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 2049 matching lines...) Expand 10 before | Expand all | Expand 10 after
2060 .RetiresOnSaturation(); 2060 .RetiresOnSaturation();
2061 EXPECT_CALL(*gl_, PixelStorei(GL_UNPACK_ROW_LENGTH, 0)) 2061 EXPECT_CALL(*gl_, PixelStorei(GL_UNPACK_ROW_LENGTH, 0))
2062 .Times(1) 2062 .Times(1)
2063 .RetiresOnSaturation(); 2063 .RetiresOnSaturation();
2064 EXPECT_CALL(*gl_, PixelStorei(GL_UNPACK_IMAGE_HEIGHT, 0)) 2064 EXPECT_CALL(*gl_, PixelStorei(GL_UNPACK_IMAGE_HEIGHT, 0))
2065 .Times(1) 2065 .Times(1)
2066 .RetiresOnSaturation(); 2066 .RetiresOnSaturation();
2067 } 2067 }
2068 } 2068 }
2069 2069
2070 void GLES2DecoderTestBase::SetupInitStateManualExpectationsForDoLineWidth(
2071 GLfloat width) {
2072 EXPECT_CALL(*gl_, LineWidth(1.0f)).Times(1).RetiresOnSaturation();
piman 2016/11/09 22:31:21 nit: LineWidth(width) maybe?
Lof 2016/11/09 22:37:21 Done. PS. Sorry 1am in Moscow.
2073 }
2074
2070 GLES2DecoderWithShaderTestBase::MockCommandBufferEngine:: 2075 GLES2DecoderWithShaderTestBase::MockCommandBufferEngine::
2071 MockCommandBufferEngine() { 2076 MockCommandBufferEngine() {
2072 std::unique_ptr<base::SharedMemory> shm(new base::SharedMemory()); 2077 std::unique_ptr<base::SharedMemory> shm(new base::SharedMemory());
2073 shm->CreateAndMapAnonymous(kSharedBufferSize); 2078 shm->CreateAndMapAnonymous(kSharedBufferSize);
2074 valid_buffer_ = MakeBufferFromSharedMemory(std::move(shm), kSharedBufferSize); 2079 valid_buffer_ = MakeBufferFromSharedMemory(std::move(shm), kSharedBufferSize);
2075 2080
2076 ClearSharedMemory(); 2081 ClearSharedMemory();
2077 } 2082 }
2078 2083
2079 GLES2DecoderWithShaderTestBase::MockCommandBufferEngine:: 2084 GLES2DecoderWithShaderTestBase::MockCommandBufferEngine::
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
2113 SetupDefaultProgram(); 2118 SetupDefaultProgram();
2114 } 2119 }
2115 2120
2116 // Include the auto-generated part of this file. We split this because it means 2121 // Include the auto-generated part of this file. We split this because it means
2117 // we can easily edit the non-auto generated parts right here in this file 2122 // we can easily edit the non-auto generated parts right here in this file
2118 // instead of having to edit some template or the code generator. 2123 // instead of having to edit some template or the code generator.
2119 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h" 2124 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h"
2120 2125
2121 } // namespace gles2 2126 } // namespace gles2
2122 } // namespace gpu 2127 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698