Index: content/browser/renderer_host/image_transport_factory.cc |
diff --git a/content/browser/renderer_host/image_transport_factory.cc b/content/browser/renderer_host/image_transport_factory.cc |
index 01aa4dbdba0836bd0cf15ca0c77f1fa2068ad035..371d191e38310bee43ff581e565e91ef0f0221fa 100644 |
--- a/content/browser/renderer_host/image_transport_factory.cc |
+++ b/content/browser/renderer_host/image_transport_factory.cc |
@@ -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" |
@@ -309,6 +310,16 @@ class BrowserCompositorOutputSurface |
output_surface_proxy_(output_surface_proxy), |
compositor_message_loop_(compositor_message_loop), |
compositor_(compositor) { |
+ 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; |
DaveMoore
2013/03/13 17:49:06
Nit: extra space
jonathan.backer
2013/03/13 18:00:25
Done.
|
+ } |
DetachFromThread(); |
} |