OLD | NEW |
1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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 "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/message_loop/message_loop_proxy.h" | 9 #include "base/message_loop/message_loop_proxy.h" |
10 #include "cc/base/thread.h" | |
11 #include "cc/layers/texture_layer_client.h" | 10 #include "cc/layers/texture_layer_client.h" |
12 #include "cc/layers/texture_layer_impl.h" | 11 #include "cc/layers/texture_layer_impl.h" |
13 #include "cc/trees/layer_tree_host.h" | 12 #include "cc/trees/layer_tree_host.h" |
14 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" | 13 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" |
15 | 14 |
16 namespace cc { | 15 namespace cc { |
17 | 16 |
18 scoped_refptr<TextureLayer> TextureLayer::Create(TextureLayerClient* client) { | 17 scoped_refptr<TextureLayer> TextureLayer::Create(TextureLayerClient* client) { |
19 return scoped_refptr<TextureLayer>(new TextureLayer(client, false)); | 18 return scoped_refptr<TextureLayer>(new TextureLayer(client, false)); |
20 } | 19 } |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 } | 286 } |
288 | 287 |
289 void TextureLayer::MailboxHolder::ReturnAndReleaseOnImplThread( | 288 void TextureLayer::MailboxHolder::ReturnAndReleaseOnImplThread( |
290 unsigned sync_point, bool is_lost) { | 289 unsigned sync_point, bool is_lost) { |
291 message_loop_->PostTask(FROM_HERE, base::Bind( | 290 message_loop_->PostTask(FROM_HERE, base::Bind( |
292 &MailboxHolder::ReturnAndReleaseOnMainThread, | 291 &MailboxHolder::ReturnAndReleaseOnMainThread, |
293 this, sync_point, is_lost)); | 292 this, sync_point, is_lost)); |
294 } | 293 } |
295 | 294 |
296 } // namespace cc | 295 } // namespace cc |
OLD | NEW |