Index: content/common/gpu/texture_image_transport_surface.cc |
diff --git a/content/common/gpu/texture_image_transport_surface.cc b/content/common/gpu/texture_image_transport_surface.cc |
index cb970b60375132e6f9c9257d7b09140248e6b037..d7ddd481c5d8d4d88502912eb4dc9a384476e0bd 100644 |
--- a/content/common/gpu/texture_image_transport_surface.cc |
+++ b/content/common/gpu/texture_image_transport_surface.cc |
@@ -147,15 +147,16 @@ unsigned int TextureImageTransportSurface::GetBackingFrameBufferObject() { |
return fbo_id_; |
} |
-void TextureImageTransportSurface::SetVisibility(VisibilityState state) { |
+void TextureImageTransportSurface::SetBufferAllocation( |
+ BufferAllocationState state) { |
if (!helper_->MakeCurrent()) |
return; |
switch (state) { |
- case VISIBILITY_STATE_FOREGROUND: |
+ case BUFFER_ALLOCATION_FRONT_AND_BACK: |
CreateBackTexture(textures_[back()].size); |
break; |
- case VISIBILITY_STATE_BACKGROUND: |
- case VISIBILITY_STATE_HIBERNATED: |
+ case BUFFER_ALLOCATION_FRONT_ONLY: |
+ case BUFFER_ALLOCATION_NONE: |
ReleaseBackTexture(); |
break; |
}; |