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

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

Issue 7273073: Animated Rotation (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Address reviewer comments Created 9 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/gfx/compositor/compositor.h ('k') | ui/gfx/compositor/compositor.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/gfx/compositor/compositor.h" 5 #include "ui/gfx/compositor/compositor.h"
6 #include "ui/gfx/compositor/compositor_observer.h"
6 7
7 namespace ui { 8 namespace ui {
8 9
9 // static 10 void Compositor::NotifyStart() {
10 Compositor* Compositor::Create(gfx::AcceleratedWidget widget, 11 OnNotifyStart();
11 const gfx::Size& size) { 12 // Could potentially notify observers here.
12 return NULL;
13 } 13 }
14 14
15 void Compositor::NotifyEnd() {
16 OnNotifyEnd();
17 FOR_EACH_OBSERVER(CompositorObserver,
18 observer_list_,
19 OnCompositingEnded());
20 }
21
22 void Compositor::AddObserver(CompositorObserver* observer) {
23 observer_list_.AddObserver(observer);
24 }
25
26 void Compositor::RemoveObserver(CompositorObserver* observer) {
27 observer_list_.RemoveObserver(observer);
28 }
29
30
15 } // namespace ui 31 } // namespace ui
OLDNEW
« no previous file with comments | « ui/gfx/compositor/compositor.h ('k') | ui/gfx/compositor/compositor.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698