| Index: ui/gfx/compositor/compositor.cc
|
| diff --git a/ui/gfx/compositor/compositor.cc b/ui/gfx/compositor/compositor.cc
|
| index 97508f3bb9130d237f121b0c168562e4e4eec69f..7d0212f6214d8e73e4f43bc5b751c6dc8b900934 100644
|
| --- a/ui/gfx/compositor/compositor.cc
|
| +++ b/ui/gfx/compositor/compositor.cc
|
| @@ -51,7 +51,9 @@ void Compositor::Draw(bool force_clear) {
|
|
|
| NotifyStart(force_clear);
|
| DrawTree();
|
| - NotifyEnd();
|
| + if (!CompositesAsynchronously()) {
|
| + NotifyEnd();
|
| + }
|
| }
|
|
|
| void Compositor::AddObserver(CompositorObserver* observer) {
|
| @@ -74,6 +76,10 @@ void Compositor::DrawTree() {
|
| root_layer_->DrawTree();
|
| }
|
|
|
| +bool Compositor::CompositesAsynchronously() {
|
| + return false;
|
| +}
|
| +
|
| void Compositor::SwizzleRGBAToBGRAAndFlip(unsigned char* pixels,
|
| const gfx::Size& image_size) {
|
| // Swizzle from RGBA to BGRA
|
| @@ -97,10 +103,6 @@ void Compositor::SwizzleRGBAToBGRAAndFlip(unsigned char* pixels,
|
| }
|
| }
|
|
|
| -void Compositor::NotifyStart(bool clear) {
|
| - OnNotifyStart(clear);
|
| -}
|
| -
|
| void Compositor::NotifyEnd() {
|
| OnNotifyEnd();
|
| FOR_EACH_OBSERVER(CompositorObserver,
|
| @@ -108,4 +110,8 @@ void Compositor::NotifyEnd() {
|
| OnCompositingEnded(this));
|
| }
|
|
|
| +void Compositor::NotifyStart(bool clear) {
|
| + OnNotifyStart(clear);
|
| +}
|
| +
|
| } // namespace ui
|
|
|