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

Unified Diff: content/browser/android/synchronous_compositor_host.cc

Issue 1844843002: android: Remove in-process video path (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove commented out code + rebase again Created 4 years, 8 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 | « content/browser/android/synchronous_compositor_base.cc ('k') | content/browser/gpu/gpu_ipc_browsertests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/android/synchronous_compositor_host.cc
diff --git a/content/browser/android/synchronous_compositor_host.cc b/content/browser/android/synchronous_compositor_host.cc
index f92b294bbc8cb748062bbefaddb510aa4a58e1db..e9dc1b8b7c0819a8878b0161aad9a26188acb01c 100644
--- a/content/browser/android/synchronous_compositor_host.cc
+++ b/content/browser/android/synchronous_compositor_host.cc
@@ -10,7 +10,6 @@
#include "base/memory/shared_memory.h"
#include "base/trace_event/trace_event_argument.h"
#include "cc/output/compositor_frame_ack.h"
-#include "content/browser/android/in_process/synchronous_compositor_factory_impl.h"
#include "content/browser/android/in_process/synchronous_compositor_renderer_statics.h"
#include "content/browser/renderer_host/render_widget_host_view_android.h"
#include "content/browser/web_contents/web_contents_impl.h"
@@ -290,17 +289,8 @@ void SynchronousCompositorHost::ReturnResources(
void SynchronousCompositorHost::SetMemoryPolicy(size_t bytes_limit) {
if (bytes_limit_ == bytes_limit)
return;
- size_t current_bytes_limit = bytes_limit_;
bytes_limit_ = bytes_limit;
SendAsyncCompositorStateIfNeeded();
-
- if (bytes_limit && !current_bytes_limit) {
- SynchronousCompositorStreamTextureFactoryImpl::GetInstance()
- ->CompositorInitializedHardwareDraw();
- } else if (!bytes_limit && current_bytes_limit) {
- SynchronousCompositorStreamTextureFactoryImpl::GetInstance()
- ->CompositorReleasedHardwareDraw();
- }
}
void SynchronousCompositorHost::DidChangeRootLayerScrollOffset(
« no previous file with comments | « content/browser/android/synchronous_compositor_base.cc ('k') | content/browser/gpu/gpu_ipc_browsertests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698