| 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 <stdio.h> | 5 #include <stdio.h> |
| 6 #include <cmath> | 6 #include <cmath> |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include <GLES2/gl2.h> | 10 #include <GLES2/gl2.h> |
| (...skipping 1345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1356 ysize, | 1356 ysize, |
| 1357 0, | 1357 0, |
| 1358 GL_RGBA, | 1358 GL_RGBA, |
| 1359 GL_UNSIGNED_BYTE, | 1359 GL_UNSIGNED_BYTE, |
| 1360 input_pixels.getPixels()); | 1360 input_pixels.getPixels()); |
| 1361 | 1361 |
| 1362 gpu::Mailbox mailbox; | 1362 gpu::Mailbox mailbox; |
| 1363 context_->genMailboxCHROMIUM(mailbox.name); | 1363 context_->genMailboxCHROMIUM(mailbox.name); |
| 1364 EXPECT_FALSE(mailbox.IsZero()); | 1364 EXPECT_FALSE(mailbox.IsZero()); |
| 1365 context_->produceTextureCHROMIUM(GL_TEXTURE_2D, mailbox.name); | 1365 context_->produceTextureCHROMIUM(GL_TEXTURE_2D, mailbox.name); |
| 1366 const blink::WGC3Duint64 fence_sync = context_->insertFenceSyncCHROMIUM(); | |
| 1367 context_->shallowFlushCHROMIUM(); | |
| 1368 | |
| 1369 gpu::SyncToken sync_token; | 1366 gpu::SyncToken sync_token; |
| 1370 ASSERT_TRUE(context_->genSyncTokenCHROMIUM(fence_sync, | 1367 ASSERT_TRUE(context_->insertSyncPoint(sync_token.GetData())); |
| 1371 sync_token.GetData())); | |
| 1372 | 1368 |
| 1373 std::string message = base::StringPrintf( | 1369 std::string message = base::StringPrintf( |
| 1374 "input size: %dx%d " | 1370 "input size: %dx%d " |
| 1375 "output size: %dx%d " | 1371 "output size: %dx%d " |
| 1376 "margin: %dx%d " | 1372 "margin: %dx%d " |
| 1377 "pattern: %d %s %s", | 1373 "pattern: %d %s %s", |
| 1378 xsize, | 1374 xsize, |
| 1379 ysize, | 1375 ysize, |
| 1380 output_xsize, | 1376 output_xsize, |
| 1381 output_ysize, | 1377 output_ysize, |
| (...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1986 base::TestSuite* suite = new content::ContentTestSuite(argc, argv); | 1982 base::TestSuite* suite = new content::ContentTestSuite(argc, argv); |
| 1987 #if defined(OS_MACOSX) | 1983 #if defined(OS_MACOSX) |
| 1988 base::mac::ScopedNSAutoreleasePool pool; | 1984 base::mac::ScopedNSAutoreleasePool pool; |
| 1989 #endif | 1985 #endif |
| 1990 | 1986 |
| 1991 return base::LaunchUnitTestsSerially( | 1987 return base::LaunchUnitTestsSerially( |
| 1992 argc, | 1988 argc, |
| 1993 argv, | 1989 argv, |
| 1994 base::Bind(&RunHelper, base::Unretained(suite))); | 1990 base::Bind(&RunHelper, base::Unretained(suite))); |
| 1995 } | 1991 } |
| OLD | NEW |