| OLD | NEW |
| 1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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 "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #if USE(ACCELERATED_COMPOSITING) | 7 #if USE(ACCELERATED_COMPOSITING) |
| 8 | 8 |
| 9 #include "ContentLayerChromium.h" | 9 #include "ContentLayerChromium.h" |
| 10 | 10 |
| 11 #include "BitmapCanvasLayerTextureUpdater.h" | 11 #include "BitmapCanvasLayerTextureUpdater.h" |
| 12 #include "BitmapSkPictureCanvasLayerTextureUpdater.h" | 12 #include "BitmapSkPictureCanvasLayerTextureUpdater.h" |
| 13 #include "CCLayerTreeHost.h" | 13 #include "CCLayerTreeHost.h" |
| 14 #include "CCSettings.h" | 14 #include "CCSettings.h" |
| 15 #include "ContentLayerChromiumClient.h" | 15 #include "ContentLayerChromiumClient.h" |
| 16 #include "FrameBufferSkPictureCanvasLayerTextureUpdater.h" | 16 #include "FrameBufferSkPictureCanvasLayerTextureUpdater.h" |
| 17 #include "LayerPainterChromium.h" | 17 #include "LayerPainterChromium.h" |
| 18 #include <public/Platform.h> | 18 #include <public/Platform.h> |
| 19 #include <wtf/CurrentTime.h> | 19 #include <wtf/CurrentTime.h> |
| 20 | 20 |
| 21 namespace WebCore { | 21 namespace cc { |
| 22 | 22 |
| 23 ContentLayerPainter::ContentLayerPainter(ContentLayerChromiumClient* client) | 23 ContentLayerPainter::ContentLayerPainter(ContentLayerChromiumClient* client) |
| 24 : m_client(client) | 24 : m_client(client) |
| 25 { | 25 { |
| 26 } | 26 } |
| 27 | 27 |
| 28 PassOwnPtr<ContentLayerPainter> ContentLayerPainter::create(ContentLayerChromium
Client* client) | 28 PassOwnPtr<ContentLayerPainter> ContentLayerPainter::create(ContentLayerChromium
Client* client) |
| 29 { | 29 { |
| 30 return adoptPtr(new ContentLayerPainter(client)); | 30 return adoptPtr(new ContentLayerPainter(client)); |
| 31 } | 31 } |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 | 99 |
| 100 void ContentLayerChromium::setOpaque(bool opaque) | 100 void ContentLayerChromium::setOpaque(bool opaque) |
| 101 { | 101 { |
| 102 LayerChromium::setOpaque(opaque); | 102 LayerChromium::setOpaque(opaque); |
| 103 if (m_textureUpdater) | 103 if (m_textureUpdater) |
| 104 m_textureUpdater->setOpaque(opaque); | 104 m_textureUpdater->setOpaque(opaque); |
| 105 } | 105 } |
| 106 | 106 |
| 107 } | 107 } |
| 108 #endif // USE(ACCELERATED_COMPOSITING) | 108 #endif // USE(ACCELERATED_COMPOSITING) |
| OLD | NEW |