From f30b270652b285b73ca83fb77977c6712b230827 Mon Sep 17 00:00:00 2001 From: "gman@google.com" Date: Tue, 1 Sep 2009 19:08:31 +0000 Subject: Rename render_width and render_height to display_width and display_height in preparation for letting the user choose the backbuffer size. The issue is the current "render_width" and "render_height" really mean display_width and display_height where as the true "render_width" and "render_height" need to be different. Review URL: http://codereview.chromium.org/179058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25070 0039d316-1c4b-4281-b951-d872f2087c98 --- o3d/core/cross/client.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'o3d/core/cross/client.cc') diff --git a/o3d/core/cross/client.cc b/o3d/core/cross/client.cc index 996e97f..2e0224d 100644 --- a/o3d/core/cross/client.cc +++ b/o3d/core/cross/client.cc @@ -422,9 +422,9 @@ String Client::GetScreenshotAsDataURL() { // To take a screenshot we create a render target and render into it // then get a bitmap from that. int pot_width = - static_cast(image::ComputePOTSize(renderer_->render_width())); + static_cast(image::ComputePOTSize(renderer_->display_width())); int pot_height = - static_cast(image::ComputePOTSize(renderer_->render_height())); + static_cast(image::ComputePOTSize(renderer_->display_height())); if (pot_width == 0 || pot_height == 0) { return dataurl::kEmptyDataURL; } @@ -447,8 +447,8 @@ String Client::GetScreenshotAsDataURL() { if (depth.IsNull()) { return dataurl::kEmptyDataURL; } - surface->SetClipSize(renderer_->render_width(), renderer_->render_height()); - depth->SetClipSize(renderer_->render_width(), renderer_->render_height()); + surface->SetClipSize(renderer_->display_width(), renderer_->display_height()); + depth->SetClipSize(renderer_->display_width(), renderer_->display_height()); const RenderSurface* old_render_surface_; const RenderDepthStencilSurface* old_depth_surface_; -- cgit v1.1