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

Unified Diff: content/browser/renderer_host/image_transport_factory.cc

Issue 12760005: Manually merge 188038 (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1410/src/
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/login/login_utils.cc ('k') | ui/compositor/compositor_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/image_transport_factory.cc
===================================================================
--- content/browser/renderer_host/image_transport_factory.cc (revision 186868)
+++ content/browser/renderer_host/image_transport_factory.cc (working copy)
@@ -12,6 +12,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/observer_list.h"
+#include "base/strings/string_number_conversions.h"
#include "base/threading/non_thread_safe.h"
#include "cc/output_surface.h"
#include "cc/output_surface_client.h"
@@ -300,6 +301,16 @@
surface_id_(surface_id),
client_(NULL),
output_surface_proxy_(output_surface_proxy) {
+ CommandLine* command_line = CommandLine::ForCurrentProcess();
+ if (command_line->HasSwitch(switches::kUIMaxFramesPending)) {
+ std::string string_value = command_line->GetSwitchValueASCII(
+ switches::kUIMaxFramesPending);
+ int int_value;
+ if (base::StringToInt(string_value, &int_value))
+ capabilities_.max_frames_pending = int_value;
+ else
+ LOG(ERROR) << "Trouble parsing --" << switches::kUIMaxFramesPending;
+ }
DetachFromThread();
}
« no previous file with comments | « chrome/browser/chromeos/login/login_utils.cc ('k') | ui/compositor/compositor_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698