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

Side by Side Diff: content/renderer/render_widget.cc

Issue 54493003: Propagate source_frame_number from LTH to DevTools (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed content/test/web_layer_tree_view_impl_for_testing.h Created 7 years, 1 month 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/renderer/render_widget.h" 5 #include "content/renderer/render_widget.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 1449 matching lines...) Expand 10 before | Expand all | Expand 10 after
1460 // Suppress updating when we are hidden. 1460 // Suppress updating when we are hidden.
1461 if (is_hidden_ || size_.IsEmpty() || is_swapped_out_) { 1461 if (is_hidden_ || size_.IsEmpty() || is_swapped_out_) {
1462 paint_aggregator_.ClearPendingUpdate(); 1462 paint_aggregator_.ClearPendingUpdate();
1463 needs_repainting_on_restore_ = true; 1463 needs_repainting_on_restore_ = true;
1464 TRACE_EVENT0("renderer", "EarlyOut_NotVisible"); 1464 TRACE_EVENT0("renderer", "EarlyOut_NotVisible");
1465 return; 1465 return;
1466 } 1466 }
1467 1467
1468 // Tracking of frame rate jitter 1468 // Tracking of frame rate jitter
1469 base::TimeTicks frame_begin_ticks = gfx::FrameTime::Now(); 1469 base::TimeTicks frame_begin_ticks = gfx::FrameTime::Now();
1470 InstrumentWillBeginFrame(); 1470 InstrumentWillBeginFrame(0);
jamesr 2013/11/06 19:04:03 why zero? we could be in compositing mode at this
caseq 2013/11/07 06:01:45 We only care about frame ids in the threaded mode,
1471 AnimateIfNeeded(); 1471 AnimateIfNeeded();
1472 1472
1473 // Layout may generate more invalidation. It may also enable the 1473 // Layout may generate more invalidation. It may also enable the
1474 // GPU acceleration, so make sure to run layout before we send the 1474 // GPU acceleration, so make sure to run layout before we send the
1475 // GpuRenderingActivated message. 1475 // GpuRenderingActivated message.
1476 webwidget_->layout(); 1476 webwidget_->layout();
1477 1477
1478 // Check for whether we need to track swap buffers. We need to do that after 1478 // Check for whether we need to track swap buffers. We need to do that after
1479 // layout() because it may have switched us to accelerated compositing. 1479 // layout() because it may have switched us to accelerated compositing.
1480 if (is_accelerated_compositing_active_) 1480 if (is_accelerated_compositing_active_)
(...skipping 1354 matching lines...) Expand 10 before | Expand all | Expand 10 after
2835 GetURLForGraphicsContext3D(), 2835 GetURLForGraphicsContext3D(),
2836 gpu_channel_host.get(), 2836 gpu_channel_host.get(),
2837 swap_client, 2837 swap_client,
2838 attributes, 2838 attributes,
2839 false /* bind generates resources */, 2839 false /* bind generates resources */,
2840 limits)); 2840 limits));
2841 return context.Pass(); 2841 return context.Pass();
2842 } 2842 }
2843 2843
2844 } // namespace content 2844 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698