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

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

Issue 9699125: Chromium implementation of discardBackbuffer WebGraphicsContext3D extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Renaming extension for now, so its not mistaken for the standard one 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/gpu_messages.h ('k') | gpu/command_buffer/service/feature_info.cc » ('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 aad677ad142e73993068def7c2f8dc1cdabff101..38417aeadde3b7b53afcec13ebf950ed35792b4f 100644
--- a/content/common/gpu/texture_image_transport_surface.cc
+++ b/content/common/gpu/texture_image_transport_surface.cc
@@ -157,9 +157,7 @@ void TextureImageTransportSurface::SetBufferAllocation(
break;
case BUFFER_ALLOCATION_FRONT_ONLY:
case BUFFER_ALLOCATION_NONE:
- // TODO(piman): Re-enable this (or something else) when we fix the
- // renderer so it doesn't try to draw/swap on deleted back buffers.
- // ReleaseBackTexture();
+ ReleaseBackTexture();
break;
};
}
@@ -195,6 +193,8 @@ bool TextureImageTransportSurface::SwapBuffers() {
front_ = back();
previous_damage_rect_ = gfx::Rect(textures_[front_].size);
+ DCHECK(textures_[front_].client_id != 0);
+
GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params params;
params.surface_handle = textures_[front_].client_id;
helper_->SendAcceleratedSurfaceBuffersSwapped(params);
« no previous file with comments | « content/common/gpu/gpu_messages.h ('k') | gpu/command_buffer/service/feature_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698