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

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

Issue 12780025: cc: Chromify rendering_stats (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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
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/base/thread.h" 9 #include "cc/base/thread.h"
10 #include "cc/output/context_provider.h" 10 #include "cc/output/context_provider.h"
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 } 165 }
166 } 166 }
167 167
168 if (initialized) 168 if (initialized)
169 output_surface_lost_ = false; 169 output_surface_lost_ = false;
170 170
171 return initialized; 171 return initialized;
172 } 172 }
173 173
174 void SingleThreadProxy::CollectRenderingStats(RenderingStats* stats) { 174 void SingleThreadProxy::CollectRenderingStats(RenderingStats* stats) {
175 stats->totalCommitTime = total_commit_time_; 175 stats->total_commit_time = total_commit_time_;
176 stats->totalCommitCount = total_commit_count_; 176 stats->total_commit_count = total_commit_count_;
177 layer_tree_host_impl_->CollectRenderingStats(stats); 177 layer_tree_host_impl_->CollectRenderingStats(stats);
178 } 178 }
179 179
180 const RendererCapabilities& SingleThreadProxy::GetRendererCapabilities() const { 180 const RendererCapabilities& SingleThreadProxy::GetRendererCapabilities() const {
181 DCHECK(renderer_initialized_); 181 DCHECK(renderer_initialized_);
182 // Note: this gets called during the commit by the "impl" thread. 182 // Note: this gets called during the commit by the "impl" thread.
183 return renderer_capabilities_for_main_thread_; 183 return renderer_capabilities_for_main_thread_;
184 } 184 }
185 185
186 void SingleThreadProxy::SetNeedsAnimate() { 186 void SingleThreadProxy::SetNeedsAnimate() {
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 450
451 bool SingleThreadProxy::CommitPendingForTesting() { return false; } 451 bool SingleThreadProxy::CommitPendingForTesting() { return false; }
452 452
453 skia::RefPtr<SkPicture> SingleThreadProxy::CapturePicture() { 453 skia::RefPtr<SkPicture> SingleThreadProxy::CapturePicture() {
454 // Impl-side painting only. 454 // Impl-side painting only.
455 NOTREACHED(); 455 NOTREACHED();
456 return skia::RefPtr<SkPicture>(); 456 return skia::RefPtr<SkPicture>();
457 } 457 }
458 458
459 } // namespace cc 459 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698