| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 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 | 5 |
| 6 #include "config.h" | 6 #include "config.h" |
| 7 | 7 |
| 8 #include "SkPictureCanvasLayerTextureUpdater.h" | 8 #include "SkPictureCanvasLayerTextureUpdater.h" |
| 9 | 9 |
| 10 #include "CCTextureUpdateQueue.h" | 10 #include "CCTextureUpdateQueue.h" |
| 11 #include "LayerPainterChromium.h" | 11 #include "LayerPainterChromium.h" |
| 12 #include "SkCanvas.h" | 12 #include "SkCanvas.h" |
| 13 #include "TraceEvent.h" | 13 #include "TraceEvent.h" |
| 14 | 14 |
| 15 namespace cc { | 15 namespace cc { |
| 16 | 16 |
| 17 SkPictureCanvasLayerTextureUpdater::SkPictureCanvasLayerTextureUpdater(PassOwnPt
r<LayerPainterChromium> painter) | 17 SkPictureCanvasLayerTextureUpdater::SkPictureCanvasLayerTextureUpdater(scoped_pt
r<LayerPainterChromium> painter) |
| 18 : CanvasLayerTextureUpdater(painter) | 18 : CanvasLayerTextureUpdater(painter.Pass()) |
| 19 , m_layerIsOpaque(false) | 19 , m_layerIsOpaque(false) |
| 20 { | 20 { |
| 21 } | 21 } |
| 22 | 22 |
| 23 SkPictureCanvasLayerTextureUpdater::~SkPictureCanvasLayerTextureUpdater() | 23 SkPictureCanvasLayerTextureUpdater::~SkPictureCanvasLayerTextureUpdater() |
| 24 { | 24 { |
| 25 } | 25 } |
| 26 | 26 |
| 27 void SkPictureCanvasLayerTextureUpdater::prepareToUpdate(const IntRect& contentR
ect, const IntSize&, float contentsWidthScale, float contentsHeightScale, IntRec
t& resultingOpaqueRect, CCRenderingStats& stats) | 27 void SkPictureCanvasLayerTextureUpdater::prepareToUpdate(const IntRect& contentR
ect, const IntSize&, float contentsWidthScale, float contentsHeightScale, IntRec
t& resultingOpaqueRect, CCRenderingStats& stats) |
| 28 { | 28 { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 45 else | 45 else |
| 46 queue.appendFullUpload(upload); | 46 queue.appendFullUpload(upload); |
| 47 } | 47 } |
| 48 | 48 |
| 49 void SkPictureCanvasLayerTextureUpdater::setOpaque(bool opaque) | 49 void SkPictureCanvasLayerTextureUpdater::setOpaque(bool opaque) |
| 50 { | 50 { |
| 51 m_layerIsOpaque = opaque; | 51 m_layerIsOpaque = opaque; |
| 52 } | 52 } |
| 53 | 53 |
| 54 } // namespace cc | 54 } // namespace cc |
| OLD | NEW |