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

Unified Diff: cc/skpicture_canvas_layer_texture_updater.cc

Issue 11074009: cc: Remove LayerTextureUpdater::Texture::updateRect() callback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/skpicture_canvas_layer_texture_updater.h ('k') | cc/test/tiled_layer_test_common.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/skpicture_canvas_layer_texture_updater.cc
diff --git a/cc/skpicture_canvas_layer_texture_updater.cc b/cc/skpicture_canvas_layer_texture_updater.cc
index 62026d7227c3fd6f0e796a29bf1af8af3c23f3ce..cf0899ad927f9f9475b132431d26358e29920d7a 100644
--- a/cc/skpicture_canvas_layer_texture_updater.cc
+++ b/cc/skpicture_canvas_layer_texture_updater.cc
@@ -9,6 +9,7 @@
#include "SkPictureCanvasLayerTextureUpdater.h"
+#include "CCTextureUpdateQueue.h"
#include "LayerPainterChromium.h"
#include "SkCanvas.h"
#include "TraceEvent.h"
@@ -38,6 +39,15 @@ void SkPictureCanvasLayerTextureUpdater::drawPicture(SkCanvas* canvas)
canvas->drawPicture(m_picture);
}
+void SkPictureCanvasLayerTextureUpdater::updateTexture(CCTextureUpdateQueue& queue, CCPrioritizedTexture* texture, const IntRect& sourceRect, const IntSize& destOffset, bool partialUpdate)
+{
+ TextureUploader::Parameters upload = { texture, NULL, &m_picture, { contentRect(), sourceRect, destOffset } };
+ if (partialUpdate)
+ queue.appendPartialUpload(upload);
+ else
+ queue.appendFullUpload(upload);
+}
+
void SkPictureCanvasLayerTextureUpdater::setOpaque(bool opaque)
{
m_layerIsOpaque = opaque;
« no previous file with comments | « cc/skpicture_canvas_layer_texture_updater.h ('k') | cc/test/tiled_layer_test_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698