OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <stddef.h> | 5 #include <stddef.h> |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 #include <stdio.h> | 7 #include <stdio.h> |
8 #include <string.h> | 8 #include <string.h> |
9 #include <cmath> | 9 #include <cmath> |
10 #include <string> | 10 #include <string> |
(...skipping 1345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1356 0, | 1356 0, |
1357 GL_RGBA, | 1357 GL_RGBA, |
1358 GL_UNSIGNED_BYTE, | 1358 GL_UNSIGNED_BYTE, |
1359 input_pixels.getPixels()); | 1359 input_pixels.getPixels()); |
1360 | 1360 |
1361 gpu::Mailbox mailbox; | 1361 gpu::Mailbox mailbox; |
1362 context_->genMailboxCHROMIUM(mailbox.name); | 1362 context_->genMailboxCHROMIUM(mailbox.name); |
1363 EXPECT_FALSE(mailbox.IsZero()); | 1363 EXPECT_FALSE(mailbox.IsZero()); |
1364 context_->produceTextureCHROMIUM(GL_TEXTURE_2D, mailbox.name); | 1364 context_->produceTextureCHROMIUM(GL_TEXTURE_2D, mailbox.name); |
1365 const blink::WGC3Duint64 fence_sync = context_->insertFenceSyncCHROMIUM(); | 1365 const blink::WGC3Duint64 fence_sync = context_->insertFenceSyncCHROMIUM(); |
1366 context_->shallowFlushCHROMIUM(); | 1366 context_->GetGLInterface()->ShallowFlushCHROMIUM(); |
1367 | 1367 |
1368 gpu::SyncToken sync_token; | 1368 gpu::SyncToken sync_token; |
1369 ASSERT_TRUE(context_->genSyncTokenCHROMIUM(fence_sync, | 1369 ASSERT_TRUE(context_->genSyncTokenCHROMIUM(fence_sync, |
1370 sync_token.GetData())); | 1370 sync_token.GetData())); |
1371 | 1371 |
1372 std::string message = base::StringPrintf( | 1372 std::string message = base::StringPrintf( |
1373 "input size: %dx%d " | 1373 "input size: %dx%d " |
1374 "output size: %dx%d " | 1374 "output size: %dx%d " |
1375 "margin: %dx%d " | 1375 "margin: %dx%d " |
1376 "pattern: %d %s %s", | 1376 "pattern: %d %s %s", |
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1987 } | 1987 } |
1988 } | 1988 } |
1989 } | 1989 } |
1990 | 1990 |
1991 TEST_F(GLHelperTest, CheckOptimizations) { | 1991 TEST_F(GLHelperTest, CheckOptimizations) { |
1992 // Test in baseclass since it is friends with GLHelperScaling | 1992 // Test in baseclass since it is friends with GLHelperScaling |
1993 CheckOptimizationsTest(); | 1993 CheckOptimizationsTest(); |
1994 } | 1994 } |
1995 | 1995 |
1996 } // namespace content | 1996 } // namespace content |
OLD | NEW |