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

Unified Diff: cc/image_layer_updater.cc

Issue 11794019: Avoid exposing gl bindings through cc public API headers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 11 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/image_layer_updater.h ('k') | cc/layer_tree_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/image_layer_updater.cc
diff --git a/cc/image_layer_updater.cc b/cc/image_layer_updater.cc
index 8f97359148071983e85012be66a8accc1a9c4815..9ba902e870b8490d434d60b4dcf442e144aa0a8b 100644
--- a/cc/image_layer_updater.cc
+++ b/cc/image_layer_updater.cc
@@ -3,10 +3,21 @@
// found in the LICENSE file.
#include "cc/image_layer_updater.h"
+#include "cc/prioritized_resource.h"
#include "cc/resource_update_queue.h"
namespace cc {
+ImageLayerUpdater::Resource::Resource(ImageLayerUpdater* updater, scoped_ptr<PrioritizedResource> texture)
+ : LayerUpdater::Resource(texture.Pass())
+ , m_updater(updater)
+{
+}
+
+ImageLayerUpdater::Resource::~Resource()
+{
+}
+
void ImageLayerUpdater::Resource::update(ResourceUpdateQueue& queue, const gfx::Rect& sourceRect, const gfx::Vector2d& destOffset, bool partialUpdate, RenderingStats&)
{
m_updater->updateTexture(queue, texture(), sourceRect, destOffset, partialUpdate);
« no previous file with comments | « cc/image_layer_updater.h ('k') | cc/layer_tree_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698