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

Side by Side Diff: cc/trees/single_thread_proxy.cc

Issue 124063003: [NOT FOR COMMIT] Hacks to get hardware canvas (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: only cc changes left Created 6 years, 11 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/trees/single_thread_proxy.h ('k') | cc/trees/thread_proxy.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/trees/single_thread_proxy.h" 5 #include "cc/trees/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/debug/benchmark_instrumentation.h" 9 #include "cc/debug/benchmark_instrumentation.h"
10 #include "cc/output/context_provider.h" 10 #include "cc/output/context_provider.h"
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 return; 352 return;
353 353
354 layer_tree_host_impl_->SendManagedMemoryStats( 354 layer_tree_host_impl_->SendManagedMemoryStats(
355 contents_texture_manager->MemoryVisibleBytes(), 355 contents_texture_manager->MemoryVisibleBytes(),
356 contents_texture_manager->MemoryVisibleAndNearbyBytes(), 356 contents_texture_manager->MemoryVisibleAndNearbyBytes(),
357 contents_texture_manager->MemoryUseBytes()); 357 contents_texture_manager->MemoryUseBytes());
358 } 358 }
359 359
360 bool SingleThreadProxy::IsInsideDraw() { return inside_draw_; } 360 bool SingleThreadProxy::IsInsideDraw() { return inside_draw_; }
361 361
362 void SingleThreadProxy::UpdateRendererCapabilitiesOnImplThread() {
363 // Thread-only/Impl-side-painting-only feature. Although it's not impossible
364 // to implement here.
365 NOTREACHED();
366 }
367
362 void SingleThreadProxy::DidLoseOutputSurfaceOnImplThread() { 368 void SingleThreadProxy::DidLoseOutputSurfaceOnImplThread() {
363 // Cause a commit so we can notice the lost context. 369 // Cause a commit so we can notice the lost context.
364 SetNeedsCommitOnImplThread(); 370 SetNeedsCommitOnImplThread();
365 client_->DidAbortSwapBuffers(); 371 client_->DidAbortSwapBuffers();
366 } 372 }
367 373
368 void SingleThreadProxy::DidSwapBuffersOnImplThread() { 374 void SingleThreadProxy::DidSwapBuffersOnImplThread() {
369 client_->DidPostSwapBuffers(); 375 client_->DidPostSwapBuffers();
370 } 376 }
371 377
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 void SingleThreadProxy::DidSwapFrame() { 554 void SingleThreadProxy::DidSwapFrame() {
549 if (next_frame_is_newly_committed_frame_) { 555 if (next_frame_is_newly_committed_frame_) {
550 next_frame_is_newly_committed_frame_ = false; 556 next_frame_is_newly_committed_frame_ = false;
551 layer_tree_host_->DidCommitAndDrawFrame(); 557 layer_tree_host_->DidCommitAndDrawFrame();
552 } 558 }
553 } 559 }
554 560
555 bool SingleThreadProxy::CommitPendingForTesting() { return false; } 561 bool SingleThreadProxy::CommitPendingForTesting() { return false; }
556 562
557 } // namespace cc 563 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/single_thread_proxy.h ('k') | cc/trees/thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698