Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(17)

Issue 3122041: Resize surface on WM_SIZE (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years ago by nduca
Modified:
14 years ago
Reviewers:
dgkoch, apatrick, apatrick1
CC:
angleproject-review_googlegroups.com
Base URL:
http://angleproject.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Resize surface on receipt of WM_SIZE to avoid corruption during resize. We hook WM_SIZE using window subclassing. This is a continuation of http://codereview.appspot.com/3038042/ Committed: http://code.google.com/p/angleproject/source/detail?r=486

Patch Set 1 #

Total comments: 14

Patch Set 2 : '' #

Total comments: 7

Patch Set 3 : '' #

Total comments: 2

Patch Set 4 : '' #

Total comments: 8

Patch Set 5 : '' #

Total comments: 2

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -33 lines) Patch
M samples/gles2_book/Common/Win32/esUtil_win32.c View 3 chunks +13 lines, -2 lines 0 comments Download
M src/libEGL/Surface.h View 1 2 3 chunks +6 lines, -4 lines 0 comments Download
M src/libEGL/Surface.cpp View 1 2 3 4 5 10 chunks +81 lines, -27 lines 0 comments Download

Messages

Total messages: 15
nduca
14 years ago (2010-11-16 17:03:38 UTC) #1
apatrick
A few thoughts... http://codereview.appspot.com/3122041/diff/1/src/libEGL/Surface.cpp File src/libEGL/Surface.cpp (left): http://codereview.appspot.com/3122041/diff/1/src/libEGL/Surface.cpp#oldcode393 src/libEGL/Surface.cpp:393: checkForOutOfDateSwapChain(); Removing this will prevent the ...
14 years ago (2010-11-16 18:15:42 UTC) #2
dgkoch
I'm not that familiar with how the window side of things works -- can the ...
14 years ago (2010-11-16 19:17:56 UTC) #3
nduca
http://codereview.appspot.com/3122041/diff/1/src/libEGL/Surface.cpp File src/libEGL/Surface.cpp (left): http://codereview.appspot.com/3122041/diff/1/src/libEGL/Surface.cpp#oldcode393 src/libEGL/Surface.cpp:393: checkForOutOfDateSwapChain(); On 2010/11/16 18:15:42, apatrick wrote: > Removing this ...
14 years ago (2010-11-16 19:20:38 UTC) #4
apatrick1
http://codereview.appspot.com/3122041/diff/8001/src/libEGL/Surface.cpp File src/libEGL/Surface.cpp (right): http://codereview.appspot.com/3122041/diff/8001/src/libEGL/Surface.cpp#newcode352 src/libEGL/Surface.cpp:352: surf->checkForOutOfDateSwapChain(true); The WM_SIZE message will arrive synchronously when SetWindowPos ...
14 years ago (2010-11-16 20:24:26 UTC) #5
nduca
http://codereview.appspot.com/3122041/diff/8001/src/libEGL/Surface.cpp File src/libEGL/Surface.cpp (right): http://codereview.appspot.com/3122041/diff/8001/src/libEGL/Surface.cpp#newcode377 src/libEGL/Surface.cpp:377: // hwnd as well and did not unsubclass before ...
14 years ago (2010-11-16 21:02:15 UTC) #6
apatrick1
http://codereview.appspot.com/3122041/diff/12001/src/libEGL/Surface.cpp File src/libEGL/Surface.cpp (right): http://codereview.appspot.com/3122041/diff/12001/src/libEGL/Surface.cpp#newcode104 src/libEGL/Surface.cpp:104: void Surface::resetSwapChain(int backbufferWidth, int backbufferHeight) One last thing and ...
14 years ago (2010-11-16 21:40:23 UTC) #7
nduca
http://codereview.appspot.com/3122041/diff/12001/src/libEGL/Surface.cpp File src/libEGL/Surface.cpp (right): http://codereview.appspot.com/3122041/diff/12001/src/libEGL/Surface.cpp#newcode104 src/libEGL/Surface.cpp:104: void Surface::resetSwapChain(int backbufferWidth, int backbufferHeight) On 2010/11/16 21:40:24, apatrick1 ...
14 years ago (2010-11-16 21:57:37 UTC) #8
dgkoch
almost there... http://codereview.appspot.com/3122041/diff/19001/src/libEGL/Surface.cpp File src/libEGL/Surface.cpp (right): http://codereview.appspot.com/3122041/diff/19001/src/libEGL/Surface.cpp#newcode364 src/libEGL/Surface.cpp:364: if(oldWndProc == 0) { to determine that ...
14 years ago (2010-11-17 21:35:03 UTC) #9
nduca
http://codereview.appspot.com/3122041/diff/19001/src/libEGL/Surface.cpp File src/libEGL/Surface.cpp (right): http://codereview.appspot.com/3122041/diff/19001/src/libEGL/Surface.cpp#newcode364 src/libEGL/Surface.cpp:364: if(oldWndProc == 0) { On 2010/11/17 21:35:03, dgkoch wrote: ...
14 years ago (2010-11-17 21:43:45 UTC) #10
dgkoch
One last thing and then LGTM. http://codereview.appspot.com/3122041/diff/24001/src/libEGL/Surface.cpp File src/libEGL/Surface.cpp (right): http://codereview.appspot.com/3122041/diff/24001/src/libEGL/Surface.cpp#newcode363 src/libEGL/Surface.cpp:363: LONG oldWndProc = ...
14 years ago (2010-11-17 21:51:33 UTC) #11
nduca
http://codereview.appspot.com/3122041/diff/24001/src/libEGL/Surface.cpp File src/libEGL/Surface.cpp (right): http://codereview.appspot.com/3122041/diff/24001/src/libEGL/Surface.cpp#newcode363 src/libEGL/Surface.cpp:363: LONG oldWndProc = SetWindowLong(mWindow, GWL_WNDPROC, reinterpret_cast<LONG>(SurfaceWindowProc)); Sigh. On 2010/11/17 ...
14 years ago (2010-11-17 21:57:44 UTC) #12
nduca
14 years ago (2010-11-17 21:57:44 UTC) #13
dgkoch
LGTM
14 years ago (2010-11-17 22:01:19 UTC) #14
nduca
14 years ago (2010-11-17 22:04:32 UTC) #15
w00t! :)


On 2010/11/17 22:01:19, dgkoch wrote:
> LGTM
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b