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

Unified Diff: content/public/browser/android/synchronous_compositor.cc

Issue 25082006: [Android WebView] OnMemoryPressure to drop tile memory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use level Created 7 years, 2 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/public/browser/android/synchronous_compositor.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/android/synchronous_compositor.cc
diff --git a/content/public/browser/android/synchronous_compositor.cc b/content/public/browser/android/synchronous_compositor.cc
index 051aa5b34ff13126a440888a1b0d462a78fb9de0..d363a70f5e24ede9e04848a93bd8cfdd8e890516 100644
--- a/content/public/browser/android/synchronous_compositor.cc
+++ b/content/public/browser/android/synchronous_compositor.cc
@@ -9,4 +9,15 @@ namespace content {
SynchronousCompositorMemoryPolicy::SynchronousCompositorMemoryPolicy()
: bytes_limit(0), num_resources_limit(0) {}
+bool SynchronousCompositorMemoryPolicy::operator==(
+ const SynchronousCompositorMemoryPolicy& other) const {
+ return bytes_limit == other.bytes_limit &&
+ num_resources_limit == other.num_resources_limit;
Ted C 2013/10/02 22:54:39 should only be indented 4
boliu 2013/10/02 23:04:42 But..but..clang-format did this...ok done. :)
+}
+
+bool SynchronousCompositorMemoryPolicy::operator!=(
+ const SynchronousCompositorMemoryPolicy& other) const {
+ return !(*this == other);
+}
+
} // namespace content
« no previous file with comments | « content/public/browser/android/synchronous_compositor.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698