Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(568)

Side by Side Diff: cc/resources/skpicture_content_layer_updater.cc

Issue 12962007: cc: Chromify resource_update_queue (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698