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

Unified Diff: content/renderer/gpu/compositor_software_output_device.cc

Issue 35883006: Add debugging info for software compositor swap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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/renderer/gpu/compositor_software_output_device.h ('k') | tools/metrics/actions/chromeactions.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/compositor_software_output_device.cc
diff --git a/content/renderer/gpu/compositor_software_output_device.cc b/content/renderer/gpu/compositor_software_output_device.cc
index 6132590ecee239a9399e337d7868c829a5738a7d..c37b958ad9e3f75c357726dc34e0e94bf6bd2d1c 100644
--- a/content/renderer/gpu/compositor_software_output_device.cc
+++ b/content/renderer/gpu/compositor_software_output_device.cc
@@ -201,6 +201,9 @@ void CompositorSoftwareOutputDevice::EndPaint(
frame_data->size = viewport_size_;
frame_data->damage_rect = damage_rect_;
frame_data->handle = buffer->handle();
+
+ CHECK_LE(static_cast<size_t>(frame_data->size.GetArea()) * 4,
+ buffer->shared_memory()->mapped_size());
}
void CompositorSoftwareOutputDevice::ReclaimSoftwareFrame(unsigned id) {
« no previous file with comments | « content/renderer/gpu/compositor_software_output_device.h ('k') | tools/metrics/actions/chromeactions.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698