summaryrefslogtreecommitdiffstats
path: root/content/common
diff options
context:
space:
mode:
Diffstat (limited to 'content/common')
-rw-r--r--content/common/gpu/texture_image_transport_surface.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/content/common/gpu/texture_image_transport_surface.cc b/content/common/gpu/texture_image_transport_surface.cc
index 5bcec62..2d7c2d0 100644
--- a/content/common/gpu/texture_image_transport_surface.cc
+++ b/content/common/gpu/texture_image_transport_surface.cc
@@ -207,6 +207,11 @@ bool TextureImageTransportSurface::SwapBuffers() {
if (!frontbuffer_suggested_allocation_)
return true;
+ if (!backbuffer_.service_id) {
+ LOG(ERROR) << "Swap without valid backing.";
+ return true;
+ }
+
DCHECK(backbuffer_.size == current_size_);
GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params params;
params.size = backbuffer_.size;
@@ -240,6 +245,11 @@ bool TextureImageTransportSurface::PostSubBuffer(
if (new_damage_rect.IsEmpty())
return true;
+ if (!backbuffer_.service_id) {
+ LOG(ERROR) << "Swap without valid backing.";
+ return true;
+ }
+
DCHECK(current_size_ == backbuffer_.size);
GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params params;
params.surface_size = backbuffer_.size;