OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/compositor/compositor.h" | 5 #include "ui/compositor/compositor.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <deque> | 8 #include <deque> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 Texture::Texture(bool flipped, const gfx::Size& size, float device_scale_factor) | 84 Texture::Texture(bool flipped, const gfx::Size& size, float device_scale_factor) |
85 : size_(size), | 85 : size_(size), |
86 flipped_(flipped), | 86 flipped_(flipped), |
87 device_scale_factor_(device_scale_factor) { | 87 device_scale_factor_(device_scale_factor) { |
88 } | 88 } |
89 | 89 |
90 Texture::~Texture() { | 90 Texture::~Texture() { |
91 } | 91 } |
92 | 92 |
93 std::string Texture::Produce() { | 93 std::string Texture::Produce() { |
94 return EmptyString(); | 94 return std::string(); |
95 } | 95 } |
96 | 96 |
97 CompositorLock::CompositorLock(Compositor* compositor) | 97 CompositorLock::CompositorLock(Compositor* compositor) |
98 : compositor_(compositor) { | 98 : compositor_(compositor) { |
99 base::MessageLoop::current()->PostDelayedTask( | 99 base::MessageLoop::current()->PostDelayedTask( |
100 FROM_HERE, | 100 FROM_HERE, |
101 base::Bind(&CompositorLock::CancelLock, AsWeakPtr()), | 101 base::Bind(&CompositorLock::CancelLock, AsWeakPtr()), |
102 base::TimeDelta::FromMilliseconds(kCompositorLockTimeoutMs)); | 102 base::TimeDelta::FromMilliseconds(kCompositorLockTimeoutMs)); |
103 } | 103 } |
104 | 104 |
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
616 // CompositorObservers to be notified before starting another | 616 // CompositorObservers to be notified before starting another |
617 // draw cycle. | 617 // draw cycle. |
618 ScheduleDraw(); | 618 ScheduleDraw(); |
619 } | 619 } |
620 FOR_EACH_OBSERVER(CompositorObserver, | 620 FOR_EACH_OBSERVER(CompositorObserver, |
621 observer_list_, | 621 observer_list_, |
622 OnCompositingEnded(this)); | 622 OnCompositingEnded(this)); |
623 } | 623 } |
624 | 624 |
625 } // namespace ui | 625 } // namespace ui |
OLD | NEW |