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

Unified Diff: cc/prioritized_texture.cc

Issue 11368043: cc: Avoid using upload term in relation to resources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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/prioritized_texture.h ('k') | cc/resource_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/prioritized_texture.cc
diff --git a/cc/prioritized_texture.cc b/cc/prioritized_texture.cc
index 1c4428a645e107c72e937ccfa7de203b57888471..70c0930cbcc49b9e51615d6a9e36b5aee96087d5 100644
--- a/cc/prioritized_texture.cc
+++ b/cc/prioritized_texture.cc
@@ -90,15 +90,15 @@ ResourceProvider::ResourceId PrioritizedTexture::resourceId() const
return 0;
}
-void PrioritizedTexture::upload(ResourceProvider* resourceProvider,
- const uint8_t* image, const gfx::Rect& imageRect,
- const gfx::Rect& sourceRect, const gfx::Vector2d& destOffset)
+void PrioritizedTexture::setPixels(ResourceProvider* resourceProvider,
+ const uint8_t* image, const gfx::Rect& imageRect,
+ const gfx::Rect& sourceRect, const gfx::Vector2d& destOffset)
{
DCHECK(m_isAbovePriorityCutoff);
if (m_isAbovePriorityCutoff)
acquireBackingTexture(resourceProvider);
DCHECK(m_backing);
- resourceProvider->upload(resourceId(), image, imageRect, sourceRect, destOffset);
+ resourceProvider->setPixels(resourceId(), image, imageRect, sourceRect, destOffset);
// The component order may be bgra if we uploaded bgra pixels to rgba
// texture. Mark contents as swizzled if image component order is
« no previous file with comments | « cc/prioritized_texture.h ('k') | cc/resource_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698