| Index: cc/resources/prioritized_resource.cc
|
| diff --git a/cc/resources/prioritized_resource.cc b/cc/resources/prioritized_resource.cc
|
| index 78fd90055a9a6e05077a7b752a4ca8c8f35f4404..6ec5eb4f4fd2ebdf0d46b15dce479e1fbfe76bd0 100644
|
| --- a/cc/resources/prioritized_resource.cc
|
| +++ b/cc/resources/prioritized_resource.cc
|
| @@ -27,8 +27,10 @@ PrioritizedResource::PrioritizedResource(PrioritizedResourceManager* manager,
|
| manager_(NULL) {
|
| // manager_ is set in RegisterTexture() so validity can be checked.
|
| DCHECK(format || size.IsEmpty());
|
| - if (format)
|
| - bytes_ = Resource::MemorySizeBytes(size, format);
|
| + if (format) {
|
| + bytes_ = Resource::MemorySizeBytes(
|
| + size, format, ResourceProvider::RGBA_8888);
|
| + }
|
| if (manager)
|
| manager->RegisterTexture(this);
|
| }
|
| @@ -53,7 +55,8 @@ void PrioritizedResource::SetDimensions(gfx::Size size, GLenum format) {
|
| is_above_priority_cutoff_ = false;
|
| format_ = format;
|
| size_ = size;
|
| - bytes_ = Resource::MemorySizeBytes(size, format);
|
| + bytes_ = Resource::MemorySizeBytes(
|
| + size, format, ResourceProvider::RGBA_8888);
|
| DCHECK(manager_ || !backing_);
|
| if (manager_)
|
| manager_->ReturnBackingTexture(this);
|
| @@ -122,7 +125,7 @@ PrioritizedResource::Backing::Backing(unsigned id,
|
| ResourceProvider* resource_provider,
|
| gfx::Size size,
|
| GLenum format)
|
| - : Resource(id, size, format),
|
| + : Resource(id, size, format, ResourceProvider::RGBA_8888),
|
| owner_(NULL),
|
| priority_at_last_priority_update_(PriorityCalculator::LowestPriority()),
|
| was_above_priority_cutoff_at_last_priority_update_(false),
|
|
|