| 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 #include "cc/resources/skpicture_content_layer_updater.h" | 5 #include "cc/resources/skpicture_content_layer_updater.h" |
| 6 | 6 |
| 7 #include "base/debug/trace_event.h" | 7 #include "base/debug/trace_event.h" |
| 8 #include "cc/resources/layer_painter.h" | 8 #include "cc/resources/layer_painter.h" |
| 9 #include "cc/resources/prioritized_resource.h" | 9 #include "cc/resources/prioritized_resource.h" |
| 10 #include "cc/resources/resource_update_queue.h" | 10 #include "cc/resources/resource_update_queue.h" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 } | 69 } |
| 70 | 70 |
| 71 void SkPictureContentLayerUpdater::UpdateTexture(ResourceUpdateQueue* queue, | 71 void SkPictureContentLayerUpdater::UpdateTexture(ResourceUpdateQueue* queue, |
| 72 PrioritizedResource* texture, | 72 PrioritizedResource* texture, |
| 73 gfx::Rect source_rect, | 73 gfx::Rect source_rect, |
| 74 gfx::Vector2d dest_offset, | 74 gfx::Vector2d dest_offset, |
| 75 bool partial_update) { | 75 bool partial_update) { |
| 76 ResourceUpdate upload = ResourceUpdate::CreateFromPicture( | 76 ResourceUpdate upload = ResourceUpdate::CreateFromPicture( |
| 77 texture, &picture_, content_rect(), source_rect, dest_offset); | 77 texture, &picture_, content_rect(), source_rect, dest_offset); |
| 78 if (partial_update) | 78 if (partial_update) |
| 79 queue->appendPartialUpload(upload); | 79 queue->AppendPartialUpload(upload); |
| 80 else | 80 else |
| 81 queue->appendFullUpload(upload); | 81 queue->AppendFullUpload(upload); |
| 82 } | 82 } |
| 83 | 83 |
| 84 void SkPictureContentLayerUpdater::SetOpaque(bool opaque) { | 84 void SkPictureContentLayerUpdater::SetOpaque(bool opaque) { |
| 85 layer_is_opaque_ = opaque; | 85 layer_is_opaque_ = opaque; |
| 86 } | 86 } |
| 87 | 87 |
| 88 } // namespace cc | 88 } // namespace cc |
| OLD | NEW |