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

Unified Diff: content/common/gpu/texture_image_transport_surface.cc

Issue 9703024: Replacing GLSurface::SetVisibility with SetBufferAllocation for more explicit management. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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
« no previous file with comments | « content/common/gpu/texture_image_transport_surface.h ('k') | ui/gfx/gl/gl_surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
};
« no previous file with comments | « content/common/gpu/texture_image_transport_surface.h ('k') | ui/gfx/gl/gl_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698