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

Unified Diff: ui/compositor/layer_unittest.cc

Issue 10690168: Aura: Resize locks with --ui-enable-threaded-compositing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: New approach. Created 8 years, 5 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
« ui/compositor/compositor.cc ('K') | « ui/compositor/compositor_observer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer_unittest.cc
diff --git a/ui/compositor/layer_unittest.cc b/ui/compositor/layer_unittest.cc
index 08623a79cbe7172aa67dca61262829ee71d1cbe8..0c5c583dc87c4e164377f221b4c6f94faf9bbe86 100644
--- a/ui/compositor/layer_unittest.cc
+++ b/ui/compositor/layer_unittest.cc
@@ -324,26 +324,18 @@ class NullLayerDelegate : public LayerDelegate {
class TestCompositorObserver : public CompositorObserver {
public:
TestCompositorObserver()
- : will_start_(false), started_(false), ended_(false), aborted_(false) {}
+ : started_(false), ended_(false), aborted_(false) {}
- bool notified() const { return will_start_ && started_ && ended_; }
+ bool notified() const { started_ && ended_; }
bool aborted() const { return aborted_; }
void Reset() {
- will_start_ = false;
started_ = false;
ended_ = false;
aborted_ = false;
}
private:
- virtual void OnCompositingDidCommit(Compositor* compositor) OVERRIDE {
- }
-
- virtual void OnCompositingWillStart(Compositor* compositor) OVERRIDE {
- will_start_ = true;
- }
-
virtual void OnCompositingStarted(Compositor* compositor) OVERRIDE {
started_ = true;
}
@@ -356,7 +348,6 @@ class TestCompositorObserver : public CompositorObserver {
aborted_ = true;
}
- bool will_start_;
bool started_;
bool ended_;
bool aborted_;
« ui/compositor/compositor.cc ('K') | « ui/compositor/compositor_observer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698