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

Side by Side Diff: cc/layers/texture_layer_unittest.cc

Issue 1539203002: Switch to standard integer types in cc/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more includes Created 5 years 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 | « cc/layers/texture_layer_impl_unittest.cc ('k') | cc/layers/ui_resource_layer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 "cc/layers/texture_layer.h" 5 #include "cc/layers/texture_layer.h"
6 6
7 #include <stddef.h>
8 #include <stdint.h>
9
7 #include <algorithm> 10 #include <algorithm>
8 #include <string> 11 #include <string>
9 12
10 #include "base/bind.h" 13 #include "base/bind.h"
11 #include "base/callback.h" 14 #include "base/callback.h"
12 #include "base/location.h" 15 #include "base/location.h"
16 #include "base/macros.h"
13 #include "base/single_thread_task_runner.h" 17 #include "base/single_thread_task_runner.h"
14 #include "base/synchronization/lock.h" 18 #include "base/synchronization/lock.h"
15 #include "base/synchronization/waitable_event.h" 19 #include "base/synchronization/waitable_event.h"
16 #include "base/thread_task_runner_handle.h" 20 #include "base/thread_task_runner_handle.h"
17 #include "base/threading/thread.h" 21 #include "base/threading/thread.h"
18 #include "base/time/time.h" 22 #include "base/time/time.h"
19 #include "cc/layers/solid_color_layer.h" 23 #include "cc/layers/solid_color_layer.h"
20 #include "cc/layers/texture_layer_client.h" 24 #include "cc/layers/texture_layer_client.h"
21 #include "cc/layers/texture_layer_impl.h" 25 #include "cc/layers/texture_layer_impl.h"
22 #include "cc/output/compositor_frame_ack.h" 26 #include "cc/output/compositor_frame_ack.h"
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 mailbox_name1_); 148 mailbox_name1_);
145 release_mailbox2_ = base::Bind(&MockMailboxCallback::Release, 149 release_mailbox2_ = base::Bind(&MockMailboxCallback::Release,
146 base::Unretained(&mock_callback_), 150 base::Unretained(&mock_callback_),
147 mailbox_name2_); 151 mailbox_name2_);
148 release_mailbox1_impl_ = base::Bind(&MockMailboxCallback::ReleaseImpl, 152 release_mailbox1_impl_ = base::Bind(&MockMailboxCallback::ReleaseImpl,
149 base::Unretained(&mock_callback_), 153 base::Unretained(&mock_callback_),
150 mailbox_name1_); 154 mailbox_name1_);
151 release_mailbox2_impl_ = base::Bind(&MockMailboxCallback::ReleaseImpl, 155 release_mailbox2_impl_ = base::Bind(&MockMailboxCallback::ReleaseImpl,
152 base::Unretained(&mock_callback_), 156 base::Unretained(&mock_callback_),
153 mailbox_name2_); 157 mailbox_name2_);
154 const uint32 arbitrary_target1 = GL_TEXTURE_2D; 158 const uint32_t arbitrary_target1 = GL_TEXTURE_2D;
155 const uint32 arbitrary_target2 = GL_TEXTURE_EXTERNAL_OES; 159 const uint32_t arbitrary_target2 = GL_TEXTURE_EXTERNAL_OES;
156 mailbox1_ = TextureMailbox(mailbox_name1_, sync_token1_, arbitrary_target1); 160 mailbox1_ = TextureMailbox(mailbox_name1_, sync_token1_, arbitrary_target1);
157 mailbox2_ = TextureMailbox(mailbox_name2_, sync_token2_, arbitrary_target2); 161 mailbox2_ = TextureMailbox(mailbox_name2_, sync_token2_, arbitrary_target2);
158 gfx::Size size(128, 128); 162 gfx::Size size(128, 128);
159 shared_bitmap_ = manager->AllocateSharedBitmap(size); 163 shared_bitmap_ = manager->AllocateSharedBitmap(size);
160 DCHECK(shared_bitmap_); 164 DCHECK(shared_bitmap_);
161 release_mailbox3_ = 165 release_mailbox3_ =
162 base::Bind(&MockMailboxCallback::Release2, 166 base::Bind(&MockMailboxCallback::Release2,
163 base::Unretained(&mock_callback_), shared_bitmap_.get()); 167 base::Unretained(&mock_callback_), shared_bitmap_.get());
164 release_mailbox3_impl_ = 168 release_mailbox3_impl_ =
165 base::Bind(&MockMailboxCallback::ReleaseImpl2, 169 base::Bind(&MockMailboxCallback::ReleaseImpl2,
(...skipping 1305 matching lines...) Expand 10 before | Expand all | Expand 10 after
1471 int callback_count_; 1475 int callback_count_;
1472 scoped_refptr<Layer> root_; 1476 scoped_refptr<Layer> root_;
1473 scoped_refptr<TextureLayer> layer_; 1477 scoped_refptr<TextureLayer> layer_;
1474 }; 1478 };
1475 1479
1476 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F( 1480 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(
1477 TextureLayerWithMailboxImplThreadDeleted); 1481 TextureLayerWithMailboxImplThreadDeleted);
1478 1482
1479 } // namespace 1483 } // namespace
1480 } // namespace cc 1484 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/texture_layer_impl_unittest.cc ('k') | cc/layers/ui_resource_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698