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

Unified Diff: content/renderer/gpu/render_widget_compositor.cc

Issue 1159833002: content: Partial copy workaround for devices with known upload performance problems. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sort Created 5 years, 6 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/trees/layer_tree_settings.cc ('k') | gpu/command_buffer/common/capabilities.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/render_widget_compositor.cc
diff --git a/content/renderer/gpu/render_widget_compositor.cc b/content/renderer/gpu/render_widget_compositor.cc
index a43c92056d26a06d43143ba8e2af2c4c9c7e0c86..4cca5041281593342a7d5cc06e0563eaa343e6bc 100644
--- a/content/renderer/gpu/render_widget_compositor.cc
+++ b/content/renderer/gpu/render_widget_compositor.cc
@@ -50,6 +50,7 @@
#include "ui/native_theme/native_theme_switches.h"
#if defined(OS_ANDROID)
+#include "base/android/build_info.h"
#include "content/renderer/android/synchronous_compositor_factory.h"
#include "ui/gfx/android/device_display_info.h"
#endif
@@ -178,14 +179,6 @@ gfx::Size CalculateDefaultTileSize(RenderWidget* widget) {
return gfx::Size(default_tile_size, default_tile_size);
}
-int GetMaxBytesPerCopyOperation() {
- const int kMegabyte = 1024 * 1024;
-
- // 4MiB is the size of 4 512x512 tiles, which has proven to be a good
- // default batch size for copy operations.
- return kMegabyte * 4;
-}
-
// Check cc::TopControlsState, and blink::WebTopControlsState
// are kept in sync.
static_assert(int(blink::WebTopControlsBoth) == int(cc::BOTH),
@@ -467,8 +460,6 @@ void RenderWidgetCompositor::Initialize() {
settings.use_external_begin_frame_source = false;
}
- settings.max_bytes_per_copy_operation = GetMaxBytesPerCopyOperation();
-
scoped_refptr<base::SingleThreadTaskRunner> compositor_thread_task_runner =
compositor_deps_->GetCompositorImplThreadTaskRunner();
scoped_refptr<base::SingleThreadTaskRunner>
« no previous file with comments | « cc/trees/layer_tree_settings.cc ('k') | gpu/command_buffer/common/capabilities.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698