Index: cc/resources/resource_provider.cc |
diff --git a/cc/resources/resource_provider.cc b/cc/resources/resource_provider.cc |
index 46b265359fb8998636b65aea6bc20bc2cdd16597..e84cfa80fee10ad914512ed09bdad602d673c45b 100644 |
--- a/cc/resources/resource_provider.cc |
+++ b/cc/resources/resource_provider.cc |
@@ -273,7 +273,6 @@ ResourceProvider::Resource::Resource(GLuint texture_id, |
allocated(false), |
read_lock_fences_enabled(false), |
has_shared_bitmap_id(false), |
- allow_overlay(false), |
read_lock_fence(NULL), |
size(size), |
origin(origin), |
@@ -317,7 +316,6 @@ ResourceProvider::Resource::Resource(uint8_t* pixels, |
allocated(false), |
read_lock_fences_enabled(false), |
has_shared_bitmap_id(!!bitmap), |
- allow_overlay(false), |
read_lock_fence(NULL), |
size(size), |
origin(origin), |
@@ -362,7 +360,6 @@ ResourceProvider::Resource::Resource(const SharedBitmapId& bitmap_id, |
allocated(false), |
read_lock_fences_enabled(false), |
has_shared_bitmap_id(true), |
- allow_overlay(false), |
read_lock_fence(NULL), |
size(size), |
origin(origin), |
@@ -456,11 +453,6 @@ bool ResourceProvider::IsLost(ResourceId id) { |
return resource->lost; |
} |
-bool ResourceProvider::AllowOverlay(ResourceId id) { |
- Resource* resource = GetResource(id); |
- return resource->allow_overlay; |
-} |
- |
ResourceId ResourceProvider::CreateResource(const gfx::Size& size, |
GLint wrap_mode, |
TextureHint hint, |
@@ -571,7 +563,7 @@ ResourceId ResourceProvider::CreateResourceFromTextureMailbox( |
Resource* resource = nullptr; |
if (mailbox.IsTexture()) { |
resource = InsertResource( |
- id, Resource(0, gfx::Size(), Resource::EXTERNAL, mailbox.target(), |
+ id, Resource(0, mailbox.size(), Resource::EXTERNAL, mailbox.target(), |
danakj
2015/05/29 20:04:15
if we're not going to use the size maybe just leav
achaulk
2015/06/01 15:43:10
Done.
|
mailbox.nearest_neighbor() ? GL_NEAREST : GL_LINEAR, 0, |
GL_CLAMP_TO_EDGE, TEXTURE_HINT_IMMUTABLE, RGBA_8888)); |
} else { |
@@ -580,15 +572,14 @@ ResourceId ResourceProvider::CreateResourceFromTextureMailbox( |
uint8_t* pixels = shared_bitmap->pixels(); |
DCHECK(pixels); |
resource = InsertResource( |
- id, Resource(pixels, shared_bitmap, mailbox.shared_memory_size(), |
- Resource::EXTERNAL, GL_LINEAR, GL_CLAMP_TO_EDGE)); |
+ id, Resource(pixels, shared_bitmap, mailbox.size(), Resource::EXTERNAL, |
+ GL_LINEAR, GL_CLAMP_TO_EDGE)); |
} |
resource->allocated = true; |
resource->mailbox = mailbox; |
resource->release_callback_impl = |
base::Bind(&SingleReleaseCallbackImpl::Run, |
base::Owned(release_callback_impl.release())); |
- resource->allow_overlay = mailbox.allow_overlay(); |
return id; |
} |
@@ -1388,7 +1379,6 @@ void ResourceProvider::ReceiveFromChild( |
// Don't allocate a texture for a child. |
resource->allocated = true; |
resource->imported_count = 1; |
- resource->allow_overlay = it->allow_overlay; |
child_info.parent_to_child_map[local_id] = it->id; |
child_info.child_to_parent_map[it->id] = local_id; |
} |
@@ -1492,7 +1482,6 @@ void ResourceProvider::TransferResource(GLES2Interface* gl, |
resource->filter = source->filter; |
resource->size = source->size; |
resource->is_repeated = (source->wrap_mode == GL_REPEAT); |
- resource->allow_overlay = source->allow_overlay; |
if (source->type == RESOURCE_TYPE_BITMAP) { |
resource->mailbox_holder.mailbox = source->shared_bitmap_id; |