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

Unified Diff: blimp/client/compositor/test/dummy_layer_driver.h

Issue 1636163002: Restructure contents of blimp/client. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « blimp/client/compositor/blimp_output_surface.cc ('k') | blimp/client/compositor/test/dummy_layer_driver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/client/compositor/test/dummy_layer_driver.h
diff --git a/blimp/client/compositor/test/dummy_layer_driver.h b/blimp/client/compositor/test/dummy_layer_driver.h
deleted file mode 100644
index 9c7158051bea39974ce36844947d8064ce59af0e..0000000000000000000000000000000000000000
--- a/blimp/client/compositor/test/dummy_layer_driver.h
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef BLIMP_CLIENT_COMPOSITOR_TEST_DUMMY_LAYER_DRIVER_H_
-#define BLIMP_CLIENT_COMPOSITOR_TEST_DUMMY_LAYER_DRIVER_H_
-
-#include "base/macros.h"
-#include "base/memory/ref_counted.h"
-#include "base/memory/weak_ptr.h"
-
-namespace cc {
-class Layer;
-}
-
-namespace blimp {
-namespace client {
-
-// A test class that drives changes to a layer every 16ms. This can be used to
-// make sure the compositor is rendering layers properly. In this case, colors
-// are constantly changed over time.
-class DummyLayerDriver {
- public:
- DummyLayerDriver();
- virtual ~DummyLayerDriver();
-
- // Adds a cc::SolidColorLayer to |layer| and animates it's color until the
- // layer is detached from it's cc::LayerTreeHost.
- void SetParentLayer(scoped_refptr<cc::Layer> layer);
-
- private:
- void StepAnimation();
-
- scoped_refptr<cc::Layer> layer_;
- bool animation_running_;
-
- base::WeakPtrFactory<DummyLayerDriver> weak_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(DummyLayerDriver);
-};
-
-} // namespace client
-} // namespace blimp
-
-#endif // BLIMP_CLIENT_COMPOSITOR_TEST_DUMMY_LAYER_DRIVER_H_
« no previous file with comments | « blimp/client/compositor/blimp_output_surface.cc ('k') | blimp/client/compositor/test/dummy_layer_driver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698