| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "config.h" | |
| 6 | |
| 7 #include "cc/image_layer_updater.h" | 5 #include "cc/image_layer_updater.h" |
| 8 #include "cc/resource_update_queue.h" | 6 #include "cc/resource_update_queue.h" |
| 9 | 7 |
| 10 namespace cc { | 8 namespace cc { |
| 11 | 9 |
| 12 void ImageLayerUpdater::Resource::update(ResourceUpdateQueue& queue, const gfx::
Rect& sourceRect, const gfx::Vector2d& destOffset, bool partialUpdate, Rendering
Stats&) | 10 void ImageLayerUpdater::Resource::update(ResourceUpdateQueue& queue, const gfx::
Rect& sourceRect, const gfx::Vector2d& destOffset, bool partialUpdate, Rendering
Stats&) |
| 13 { | 11 { |
| 14 m_updater->updateTexture(queue, texture(), sourceRect, destOffset, partialUp
date); | 12 m_updater->updateTexture(queue, texture(), sourceRect, destOffset, partialUp
date); |
| 15 } | 13 } |
| 16 | 14 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 46 else | 44 else |
| 47 queue.appendFullUpload(upload); | 45 queue.appendFullUpload(upload); |
| 48 } | 46 } |
| 49 | 47 |
| 50 void ImageLayerUpdater::setBitmap(const SkBitmap& bitmap) | 48 void ImageLayerUpdater::setBitmap(const SkBitmap& bitmap) |
| 51 { | 49 { |
| 52 m_bitmap = bitmap; | 50 m_bitmap = bitmap; |
| 53 } | 51 } |
| 54 | 52 |
| 55 } | 53 } |
| OLD | NEW |