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 "cc/image_layer_updater.h" | 5 #include "cc/resources/image_layer_updater.h" |
6 #include "cc/prioritized_resource.h" | 6 #include "cc/resources/prioritized_resource.h" |
7 #include "cc/resource_update_queue.h" | 7 #include "cc/resources/resource_update_queue.h" |
8 | 8 |
9 namespace cc { | 9 namespace cc { |
10 | 10 |
11 ImageLayerUpdater::Resource::Resource(ImageLayerUpdater* updater, | 11 ImageLayerUpdater::Resource::Resource(ImageLayerUpdater* updater, |
12 scoped_ptr<PrioritizedResource> texture) | 12 scoped_ptr<PrioritizedResource> texture) |
13 : LayerUpdater::Resource(texture.Pass()), updater_(updater) {} | 13 : LayerUpdater::Resource(texture.Pass()), updater_(updater) {} |
14 | 14 |
15 ImageLayerUpdater::Resource::~Resource() {} | 15 ImageLayerUpdater::Resource::~Resource() {} |
16 | 16 |
17 void ImageLayerUpdater::Resource::Update(ResourceUpdateQueue* queue, | 17 void ImageLayerUpdater::Resource::Update(ResourceUpdateQueue* queue, |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 51 |
52 ResourceUpdate upload = ResourceUpdate::Create( | 52 ResourceUpdate upload = ResourceUpdate::Create( |
53 texture, &bitmap_, image_rect, clipped_source_rect, clipped_dest_offset); | 53 texture, &bitmap_, image_rect, clipped_source_rect, clipped_dest_offset); |
54 if (partial_update) | 54 if (partial_update) |
55 queue->appendPartialUpload(upload); | 55 queue->appendPartialUpload(upload); |
56 else | 56 else |
57 queue->appendFullUpload(upload); | 57 queue->appendFullUpload(upload); |
58 } | 58 } |
59 | 59 |
60 } | 60 } |
OLD | NEW |