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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 303543004: MacViews: views_examples_with_content_exe working! Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add files Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/output/gl_renderer.cc ('k') | cc/trees/single_thread_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index 219ea891051ebbc651e95f2f6438fbb9f9621096..7a58dadce7b6fef79b8bb4589e423dee0bee6785 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -349,11 +349,14 @@ bool LayerTreeHostImpl::CanDraw() const {
// client_->OnCanDrawStateChanged in the proper places and update the
// NotifyIfCanDrawChanged test.
+ DLOG(INFO) << 1;
+
if (!renderer_) {
TRACE_EVENT_INSTANT0("cc", "LayerTreeHostImpl::CanDraw no renderer",
TRACE_EVENT_SCOPE_THREAD);
return false;
}
+ DLOG(INFO) << 2;
// Must have an OutputSurface if |renderer_| is not NULL.
DCHECK(output_surface_);
@@ -365,33 +368,39 @@ bool LayerTreeHostImpl::CanDraw() const {
TRACE_EVENT_SCOPE_THREAD);
return false;
}
+ DLOG(INFO) << 3;
if (output_surface_->capabilities().draw_and_swap_full_viewport_every_frame)
return true;
+ DLOG(INFO) << 4;
- if (DrawViewportSize().IsEmpty()) {
+ if (false && DrawViewportSize().IsEmpty()) {
TRACE_EVENT_INSTANT0("cc", "LayerTreeHostImpl::CanDraw empty viewport",
TRACE_EVENT_SCOPE_THREAD);
return false;
}
+ DLOG(INFO) << 5;
if (active_tree_->ViewportSizeInvalid()) {
TRACE_EVENT_INSTANT0(
"cc", "LayerTreeHostImpl::CanDraw viewport size recently changed",
TRACE_EVENT_SCOPE_THREAD);
return false;
}
+ DLOG(INFO) << 6;
if (active_tree_->ContentsTexturesPurged()) {
TRACE_EVENT_INSTANT0(
"cc", "LayerTreeHostImpl::CanDraw contents textures purged",
TRACE_EVENT_SCOPE_THREAD);
return false;
}
+ DLOG(INFO) << 7;
if (EvictedUIResourcesExist()) {
TRACE_EVENT_INSTANT0(
"cc", "LayerTreeHostImpl::CanDraw UI resources evicted not recreated",
TRACE_EVENT_SCOPE_THREAD);
return false;
}
+ DLOG(INFO) << 8;
return true;
}
@@ -1405,6 +1414,7 @@ void LayerTreeHostImpl::DrawLayers(FrameData* frame,
return;
}
+ DLOG(INFO) << "DrawLayers";
DCHECK(!frame->render_passes.empty());
fps_counter_->SaveTimeStamp(frame_begin_time,
@@ -2102,6 +2112,7 @@ gfx::Size LayerTreeHostImpl::DrawViewportSize() const {
}
gfx::Rect LayerTreeHostImpl::DeviceViewport() const {
+ DLOG(INFO) << external_viewport_.ToString();
if (external_viewport_.IsEmpty())
return gfx::Rect(device_viewport_size_);
« no previous file with comments | « cc/output/gl_renderer.cc ('k') | cc/trees/single_thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698