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

Side by Side Diff: content/common/gpu/client/gl_helper_unittest.cc

Issue 1809553002: blink: Remove unused or rarely used methods from WebGraphicsContext3D (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wgc3d
Patch Set: wgc3d-unused: WebMediaPlayerAndroid::copyVideoTextureToPlatformTexture 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 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
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
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
OLDNEW
« no previous file with comments | « content/common/gpu/client/context_provider_command_buffer.cc ('k') | content/common/gpu/client/gpu_context_tests.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698