summaryrefslogtreecommitdiffstats
path: root/o3d/core/cross/client.cc
diff options
context:
space:
mode:
authorgman@google.com <gman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-01 19:08:31 +0000
committergman@google.com <gman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-01 19:08:31 +0000
commitf30b270652b285b73ca83fb77977c6712b230827 (patch)
tree42f0c0b17dd7dab167258178788dd7f3690d4341 /o3d/core/cross/client.cc
parenta9209de8c2736df8ce02a87f13dae466c4750067 (diff)
downloadchromium_src-f30b270652b285b73ca83fb77977c6712b230827.zip
chromium_src-f30b270652b285b73ca83fb77977c6712b230827.tar.gz
chromium_src-f30b270652b285b73ca83fb77977c6712b230827.tar.bz2
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
Diffstat (limited to 'o3d/core/cross/client.cc')
-rw-r--r--o3d/core/cross/client.cc8
1 files changed, 4 insertions, 4 deletions
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<int>(image::ComputePOTSize(renderer_->render_width()));
+ static_cast<int>(image::ComputePOTSize(renderer_->display_width()));
int pot_height =
- static_cast<int>(image::ComputePOTSize(renderer_->render_height()));
+ static_cast<int>(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_;