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

Unified Diff: cc/layers/texture_layer_unittest.cc

Issue 1548443002: Introducing gpu::CommandBufferId as a distinct, IdType<...>-based type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@type-safe-save-package-id-self-contained
Patch Set: Rebasing... Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/output/gl_renderer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/texture_layer_unittest.cc
diff --git a/cc/layers/texture_layer_unittest.cc b/cc/layers/texture_layer_unittest.cc
index 0cfedc35e7d406ca9d2c2fb2a5bfd15eebcdb0c5..45e59769cf00356671e9b83edeaf884d9d6f4031 100644
--- a/cc/layers/texture_layer_unittest.cc
+++ b/cc/layers/texture_layer_unittest.cc
@@ -58,7 +58,8 @@ gpu::Mailbox MailboxFromChar(char value) {
}
gpu::SyncToken SyncTokenFromUInt(uint32_t value) {
- return gpu::SyncToken(gpu::CommandBufferNamespace::GPU_IO, 0, 0x123, value);
+ return gpu::SyncToken(gpu::CommandBufferNamespace::GPU_IO, 0,
+ gpu::CommandBufferId::FromUnsafeValue(0x123), value);
}
class MockLayerTreeHost : public LayerTreeHost {
@@ -145,8 +146,14 @@ struct CommonMailboxObjects {
explicit CommonMailboxObjects(SharedBitmapManager* manager)
: mailbox_name1_(MailboxFromChar('1')),
mailbox_name2_(MailboxFromChar('2')),
- sync_token1_(gpu::CommandBufferNamespace::GPU_IO, 123, 0x234, 1),
- sync_token2_(gpu::CommandBufferNamespace::GPU_IO, 123, 0x234, 2) {
+ sync_token1_(gpu::CommandBufferNamespace::GPU_IO,
+ 123,
+ gpu::CommandBufferId::FromUnsafeValue(0x234),
+ 1),
+ sync_token2_(gpu::CommandBufferNamespace::GPU_IO,
+ 123,
+ gpu::CommandBufferId::FromUnsafeValue(0x234),
+ 2) {
release_mailbox1_ = base::Bind(&MockMailboxCallback::Release,
base::Unretained(&mock_callback_),
mailbox_name1_);
« no previous file with comments | « no previous file | cc/output/gl_renderer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698