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

Side by Side Diff: cc/single_thread_proxy.cc

Issue 12774006: cc: Chromify Layer and LayerImpl classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: MoreAndroidCompilings Created 7 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 | Annotate | Revision Log
« no previous file with comments | « cc/shared_quad_state.cc ('k') | cc/solid_color_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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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/single_thread_proxy.h" 5 #include "cc/single_thread_proxy.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "base/debug/trace_event.h" 8 #include "base/debug/trace_event.h"
9 #include "cc/context_provider.h" 9 #include "cc/context_provider.h"
10 #include "cc/draw_quad.h" 10 #include "cc/draw_quad.h"
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 TRACE_EVENT0("cc", "SingleThreadProxy::stop"); 262 TRACE_EVENT0("cc", "SingleThreadProxy::stop");
263 DCHECK(Proxy::IsMainThread()); 263 DCHECK(Proxy::IsMainThread());
264 { 264 {
265 DebugScopedSetMainThreadBlocked mainThreadBlocked(this); 265 DebugScopedSetMainThreadBlocked mainThreadBlocked(this);
266 DebugScopedSetImplThread impl(this); 266 DebugScopedSetImplThread impl(this);
267 267
268 layer_tree_host_->deleteContentsTexturesOnImplThread( 268 layer_tree_host_->deleteContentsTexturesOnImplThread(
269 layer_tree_host_impl_->resourceProvider()); 269 layer_tree_host_impl_->resourceProvider());
270 layer_tree_host_impl_.reset(); 270 layer_tree_host_impl_.reset();
271 } 271 }
272 layer_tree_host_ = 0; 272 layer_tree_host_ = NULL;
273 } 273 }
274 274
275 void SingleThreadProxy::setNeedsRedrawOnImplThread() { 275 void SingleThreadProxy::setNeedsRedrawOnImplThread() {
276 layer_tree_host_->scheduleComposite(); 276 layer_tree_host_->scheduleComposite();
277 } 277 }
278 278
279 void SingleThreadProxy::didUploadVisibleHighResolutionTileOnImplThread() { 279 void SingleThreadProxy::didUploadVisibleHighResolutionTileOnImplThread() {
280 // Impl-side painting only. 280 // Impl-side painting only.
281 NOTREACHED(); 281 NOTREACHED();
282 } 282 }
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 449
450 bool SingleThreadProxy::CommitPendingForTesting() { return false; } 450 bool SingleThreadProxy::CommitPendingForTesting() { return false; }
451 451
452 skia::RefPtr<SkPicture> SingleThreadProxy::CapturePicture() { 452 skia::RefPtr<SkPicture> SingleThreadProxy::CapturePicture() {
453 // Impl-side painting only. 453 // Impl-side painting only.
454 NOTREACHED(); 454 NOTREACHED();
455 return skia::RefPtr<SkPicture>(); 455 return skia::RefPtr<SkPicture>();
456 } 456 }
457 457
458 } // namespace cc 458 } // namespace cc
OLDNEW
« no previous file with comments | « cc/shared_quad_state.cc ('k') | cc/solid_color_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698