Changing 'frame' method to 'bounds' method.
BUG=2369 R=fischman@webrtc.org Review URL: https://webrtc-codereview.appspot.com/2223004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4773 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
367baa6eb3
commit
fe84fda488
@ -234,11 +234,11 @@ int VideoRenderIosGles20::GetWindowRect(Rect& rect) {
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
CGRect frame = [view_ frame];
|
CGRect bounds = [view_ bounds];
|
||||||
rect.top = frame.origin.x;
|
rect.top = bounds.origin.y;
|
||||||
rect.left = frame.origin.y;
|
rect.left = bounds.origin.x;
|
||||||
rect.bottom = frame.size.width;
|
rect.bottom = bounds.size.height + bounds.origin.y;
|
||||||
rect.right = frame.size.height;
|
rect.right = bounds.size.width + bounds.origin.x;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -271,8 +271,8 @@ int VideoRenderIosGles20::StopRender() {
|
|||||||
|
|
||||||
int VideoRenderIosGles20::GetScreenResolution(uint& screen_width,
|
int VideoRenderIosGles20::GetScreenResolution(uint& screen_width,
|
||||||
uint& screen_height) {
|
uint& screen_height) {
|
||||||
screen_width = [view_ frame].size.width;
|
screen_width = [view_ bounds].size.width;
|
||||||
screen_height = [view_ frame].size.height;
|
screen_height = [view_ bounds].size.height;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -121,8 +121,8 @@ using namespace webrtc;
|
|||||||
glBindFramebuffer(GL_FRAMEBUFFER, _defaultFrameBuffer);
|
glBindFramebuffer(GL_FRAMEBUFFER, _defaultFrameBuffer);
|
||||||
glViewport(0, 0, self.frame.size.width, self.frame.size.height);
|
glViewport(0, 0, self.frame.size.width, self.frame.size.height);
|
||||||
|
|
||||||
return gles_renderer20_->Setup([self frame].size.width,
|
return gles_renderer20_->Setup([self bounds].size.width,
|
||||||
[self frame].size.height);
|
[self bounds].size.height);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (BOOL)presentFramebuffer {
|
- (BOOL)presentFramebuffer {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user