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

Side by Side Diff: ui/gfx/compositor/test_layer_animation_observer.cc

Issue 8533019: Add two pixel-based compositor unittests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removing images from this CL Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/gfx/compositor/test_layer_animation_observer.h ('k') | ui/gfx/compositor/test_suite.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ui/gfx/compositor/test_layer_animation_observer.h"
6
7 #include <cstddef>
8
9 namespace ui {
10
11 TestLayerAnimationObserver::TestLayerAnimationObserver()
12 : last_ended_sequence_(NULL),
13 last_scheduled_sequence_(NULL),
14 last_aborted_sequence_(NULL) {
15 }
16
17 TestLayerAnimationObserver::~TestLayerAnimationObserver() {
18 }
19
20 void TestLayerAnimationObserver::OnLayerAnimationEnded(
21 const LayerAnimationSequence* sequence) {
22 last_ended_sequence_ = sequence;
23 }
24
25 void TestLayerAnimationObserver::OnLayerAnimationScheduled(
26 const LayerAnimationSequence* sequence) {
27 last_scheduled_sequence_ = sequence;
28 }
29
30 void TestLayerAnimationObserver::OnLayerAnimationAborted(
31 const LayerAnimationSequence* sequence) {
32 last_aborted_sequence_ = sequence;
33 }
34
35 } // namespace ui
OLDNEW
« no previous file with comments | « ui/gfx/compositor/test_layer_animation_observer.h ('k') | ui/gfx/compositor/test_suite.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698