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

Unified Diff: cc/resources/scoped_resource.cc

Issue 486853002: cc: Use a normal texture for background texture. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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
Index: cc/resources/scoped_resource.cc
diff --git a/cc/resources/scoped_resource.cc b/cc/resources/scoped_resource.cc
index 68ae59fc0ba8cc3343949983685b0258cee08323..407de5105c8bfa1f088011c6017bc587e7545287 100644
--- a/cc/resources/scoped_resource.cc
+++ b/cc/resources/scoped_resource.cc
@@ -16,7 +16,7 @@ ScopedResource::~ScopedResource() {
}
void ScopedResource::Allocate(const gfx::Size& size,
- ResourceProvider::TextureUsageHint hint,
+ ResourceProvider::TextureHint hint,
ResourceFormat format) {
DCHECK(!id());
DCHECK(!size.IsEmpty());
@@ -41,7 +41,7 @@ void ScopedResource::AllocateManaged(const gfx::Size& size,
size,
target,
GL_CLAMP_TO_EDGE,
- ResourceProvider::TextureUsageAny,
+ ResourceProvider::TextureHintImmutable,
format));
#if DCHECK_IS_ON

Powered by Google App Engine
This is Rietveld 408576698