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

Side by Side Diff: content/renderer/gpu/render_widget_compositor.cc

Issue 12096112: [cc] Trace detailed tile info when --trace-all-rendered-frames (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 10 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/gpu/render_widget_compositor.h" 5 #include "content/renderer/gpu/render_widget_compositor.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/string_number_conversions.h" 9 #include "base/string_number_conversions.h"
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 settings.initialDebugState.showScreenSpaceRects = 98 settings.initialDebugState.showScreenSpaceRects =
99 cmd->HasSwitch(cc::switches::kShowScreenSpaceRects); 99 cmd->HasSwitch(cc::switches::kShowScreenSpaceRects);
100 settings.initialDebugState.showReplicaScreenSpaceRects = 100 settings.initialDebugState.showReplicaScreenSpaceRects =
101 cmd->HasSwitch(cc::switches::kShowReplicaScreenSpaceRects); 101 cmd->HasSwitch(cc::switches::kShowReplicaScreenSpaceRects);
102 settings.initialDebugState.showOccludingRects = 102 settings.initialDebugState.showOccludingRects =
103 cmd->HasSwitch(cc::switches::kShowOccludingRects); 103 cmd->HasSwitch(cc::switches::kShowOccludingRects);
104 settings.initialDebugState.showNonOccludingRects = 104 settings.initialDebugState.showNonOccludingRects =
105 cmd->HasSwitch(cc::switches::kShowNonOccludingRects); 105 cmd->HasSwitch(cc::switches::kShowNonOccludingRects);
106 settings.initialDebugState.setRecordRenderingStats( 106 settings.initialDebugState.setRecordRenderingStats(
107 web_settings.recordRenderingStats); 107 web_settings.recordRenderingStats);
108 settings.initialDebugState.traceAllRenderedFrames =
109 cmd->HasSwitch(cc::switches::kTraceAllRenderedFrames);
108 110
109 if (cmd->HasSwitch(cc::switches::kSlowDownRasterScaleFactor)) { 111 if (cmd->HasSwitch(cc::switches::kSlowDownRasterScaleFactor)) {
110 std::string slow_down_scale_str = 112 std::string slow_down_scale_str =
111 cmd->GetSwitchValueASCII(cc::switches::kSlowDownRasterScaleFactor); 113 cmd->GetSwitchValueASCII(cc::switches::kSlowDownRasterScaleFactor);
112 int slow_down_scale; 114 int slow_down_scale;
113 if (base::StringToInt(slow_down_scale_str, &slow_down_scale)) { 115 if (base::StringToInt(slow_down_scale_str, &slow_down_scale)) {
114 settings.initialDebugState.slowDownRasterScaleFactor = slow_down_scale; 116 settings.initialDebugState.slowDownRasterScaleFactor = slow_down_scale;
115 } else { 117 } else {
116 LOG(WARNING) << "Failed to parse the slow down raster scale factor:" << 118 LOG(WARNING) << "Failed to parse the slow down raster scale factor:" <<
117 slow_down_scale_str; 119 slow_down_scale_str;
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 386
385 client_->createFontAtlas(bitmap, ascii_to_web_rect_table, font_height); 387 client_->createFontAtlas(bitmap, ascii_to_web_rect_table, font_height);
386 388
387 for (int i = 0; i < 128; ++i) 389 for (int i = 0; i < 128; ++i)
388 ascii_to_rect_table[i] = ascii_to_web_rect_table[i]; 390 ascii_to_rect_table[i] = ascii_to_web_rect_table[i];
389 391
390 return cc::FontAtlas::create(bitmap, ascii_to_rect_table, font_height).Pass(); 392 return cc::FontAtlas::create(bitmap, ascii_to_rect_table, font_height).Pass();
391 } 393 }
392 394
393 } // namespace content 395 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698