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

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

Issue 17114008: cc: Remove cc::Thread and cc::ThreadImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm-thread: NULLrefptrs Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « cc/layers/scrollbar_layer_unittest.cc ('k') | cc/layers/texture_layer_unittest.cc » ('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 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
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
OLDNEW
« no previous file with comments | « cc/layers/scrollbar_layer_unittest.cc ('k') | cc/layers/texture_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698