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

Unified Diff: content/test/web_layer_tree_view_impl_for_testing.h

Issue 68893031: Unifies LayerTreeHost::SetNeedsUpdateLayers and SetNeedsAnimate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: okay let's call it SetNeedsUpdateLayers Created 7 years, 1 month 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
Index: content/test/web_layer_tree_view_impl_for_testing.h
diff --git a/content/test/web_layer_tree_view_impl_for_testing.h b/content/test/web_layer_tree_view_impl_for_testing.h
index bf19cb4131bc522b9c5b639b39c65b78ac41ebcb..20e3eb2692540c18fc06242ee0719c0e0f7e9e7e 100644
--- a/content/test/web_layer_tree_view_impl_for_testing.h
+++ b/content/test/web_layer_tree_view_impl_for_testing.h
@@ -5,6 +5,7 @@
#ifndef CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_
#define CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_
+#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "cc/trees/layer_tree_host_client.h"
#include "cc/trees/layer_tree_host_single_thread_client.h"
@@ -48,9 +49,10 @@ class WebLayerTreeViewImplForTesting
bool use_anchor,
float new_page_scale,
double duration_sec);
- virtual void setNeedsAnimate();
+ virtual void setNeedsAnimate() { setNeedsUpdateLayers(); } // Renamed. Staged for removal.
+ virtual void setNeedsUpdateLayers();
virtual void setNeedsRedraw();
- virtual bool commitRequested() const;
+ virtual bool commitRequested() const { NOTREACHED(); return false; } // Unused. Staged for removal.
virtual void composite();
virtual void didStopFlinging();
virtual bool compositeAndReadback(void* pixels, const blink::WebRect& rect);

Powered by Google App Engine
This is Rietveld 408576698