History log of /packages/apps/Gallery2/src/com/android/gallery3d/ui/GLRootView.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
6adf13c2aeee89735df1b7c12670a026e5087161 05-Jun-2013 John Reck <jreck@google.com> Fix graphical corruption due to tear down race

Bug: 9278945

Change-Id: I7594680322768f60eaed8a1037d139cbadf9706b
/packages/apps/Gallery2/src/com/android/gallery3d/ui/GLRootView.java
ac94740cd673a016542d803c8600633c99b7427e 09-May-2013 George Mount <mount@google.com> Remove GL dependency on unused stencil buffers.

Bug 8884435

Change-Id: I8e7f0563a4a901953e3e2b14e35457b4fefe2e34
/packages/apps/Gallery2/src/com/android/gallery3d/ui/GLRootView.java
50b33abe053ccab7be3d1bca2328e792507963d4 07-Jan-2013 George Mount <mount@google.com> Instantiate GLCanvas rather than reinitialize current GLCanvas.

GLCanvas was being used as a singleton when it really should
allow separate instances for correctness.

Change-Id: I650884e843a4a78997b70826f6012ae19b8df549
/packages/apps/Gallery2/src/com/android/gallery3d/ui/GLRootView.java
a4eae1abb4f2547dfbda84301ee764ce35464881 11-Dec-2012 John Reck <jreck@google.com> GL packaging refactor

Change-Id: I1d7a95c4f0b91a5ba59030d57cf6865c11b497aa
/packages/apps/Gallery2/src/com/android/gallery3d/ui/GLRootView.java
5c7b259812a4cea11e14b901526faf5a33c4c07c 10-Dec-2012 John Reck <jreck@google.com> am 695e1aa0: Force a layout pass if the display rotation changes

* commit '695e1aa059cbc2cb2988f6beb0fee8ff7952b229':
Force a layout pass if the display rotation changes
695e1aa059cbc2cb2988f6beb0fee8ff7952b229 10-Dec-2012 John Reck <jreck@google.com> Force a layout pass if the display rotation changes

Bug: 7687209
DisplayRotation is used to map camera orientation to the display and is
updated in layoutContentPane(). However, in the case of a 180 rotate
framework doesn't send an onConfigurationChanged nor does the layout
dimensions change, thus layoutContentPane doesn't fire and we don't
update mDisplayRotation, resulting in an upside-down preview. To handle
this, check each draw whether or not the display rotation has changed
and if it has force a layout pass.

Change-Id: I610ea235d1bf7de2743f4cdb8e42ba1ddcb41404
/packages/apps/Gallery2/src/com/android/gallery3d/ui/GLRootView.java
6eb33768a15e2b4cc647bc55474568cf710876db 17-Nov-2012 George Mount <mount@google.com> Add GLES20 canvas implementation.

Change-Id: I5680909f31dc097599d0e063aa1f6daba834d3e2
/packages/apps/Gallery2/src/com/android/gallery3d/ui/GLRootView.java
71c177759c7aa10082c8fdf909b701cf0047bead 25-Oct-2012 Angus Kong <shkong@google.com> Force renderring request for Camera Animation.

bug:7410862
Change-Id: I439186f2fea5ee0939ddcfcb9d77a49d0047727b
/packages/apps/Gallery2/src/com/android/gallery3d/ui/GLRootView.java
b75f5defe8ace12b8b563e713f7175863ab5713d 23-Oct-2012 John Reck <jreck@google.com> Drive GLRootView with Choreographer

Bug: 7332724
By routing requestRender through postOnAnimation we can drive
the GLRootView's rendering with the UI thread's coreographer, which
ensures that touch events are processed before drawing

Change-Id: Iac2b3229e9a09ee0319c64c5fc7cb906512a379c
/packages/apps/Gallery2/src/com/android/gallery3d/ui/GLRootView.java
5515801ddea6953e95b2c41a9434bb1fe489e08a 05-Oct-2012 Owen Lin <owenlin@google.com> Fix ANR in creating the fallback animation.

bug: 6620501
Change-Id: Ibb798cce5dd49bb5083de6f29225bae512d589f8
/packages/apps/Gallery2/src/com/android/gallery3d/ui/GLRootView.java
2e1771b997ab6966411b2c612562c538ae3e325d 19-Sep-2012 Pin Ting <pinting@google.com> Use 565 pixel format for pre-JB; use 888 otherwise.

Bug:7189512
Change-Id: Iec5d528fef4f4fc589370339add299a40fc8f26e
/packages/apps/Gallery2/src/com/android/gallery3d/ui/GLRootView.java
8fedc27c552424cc5d8e72783bd53f38538190e9 07-Aug-2012 Ahbong Chang <cwahbong@google.com> Move motion event related methods to class MotionEventHelper.

Bug: 6943189
Change-Id: I9084cc8ebb501a5b772ed4e00bd64a3b2e8bafb3
/packages/apps/Gallery2/src/com/android/gallery3d/ui/GLRootView.java
abf0ea68634c1d21870c48297ab6898491e0c56f 31-Jul-2012 Chih-Chung Chang <chihchung@google.com> Manually transform the event coordinates on older platforms.

Change-Id: I070b27112ea028f2a1596dcdfa480537765174b9
/packages/apps/Gallery2/src/com/android/gallery3d/ui/GLRootView.java
b0774a3bfb24d8515fc3ddf152fabf82f0ff67e5 06-Jul-2012 Yuli Huang <yuli@google.com> Avoid using setSystemUiVisibility in old platforms.

bug:6785569

Change-Id: I0a19ab2818b6f34d530c5d65e781d3168533d44f
/packages/apps/Gallery2/src/com/android/gallery3d/ui/GLRootView.java
df4763cf8752fb1babc7244fc2be33ed87d3b072 28-Jun-2012 Owen Lin <owenlin@google.com> Don't reuse bitmap before HoneyComb.

Change-Id: I0df9bf0a8f43e28ed25b436d4c584dc3ceb43c1d
/packages/apps/Gallery2/src/com/android/gallery3d/ui/GLRootView.java
ca7d9bfb42c1d5037bcecdde30eb836755140b03 29-Jun-2012 The Android Open Source Project <initial-contribution@android.com> Avoid using View.SYSTEM_UI_FLAG_LOW_PROFILE.

Use View.STATUS_BAR_HIDDEN instead.

Bug:6706727
Change-Id: I0324a251b10eba11350f1813ee975d493bbcfafa
/packages/apps/Gallery2/src/com/android/gallery3d/ui/GLRootView.java
3a45725ad42324cd2db172fb082fe80772d94d3f 28-Jun-2012 Owen Lin <owenlin@google.com> Don't use Build.VERSION_CODES.

Since they won't be available on old platform.

bug: 6752318

Change-Id: I55a9e83dbf05b93c83c68cb31f6edcbc29793283
/packages/apps/Gallery2/src/com/android/gallery3d/ui/GLRootView.java
7a5e1e771ae58241f3a2be36f23025f282032261 20-Jun-2012 Owen Lin <owenlin@google.com> Guard the use of SYSTEM_UI_FLAG_XXXX with TargetApi

bug: 6698718

Change-Id: I6962f0128ce2bd57658b7f3b77d2bc150eff1f60
/packages/apps/Gallery2/src/com/android/gallery3d/ui/GLRootView.java
edada7ca2b7c70c5459cbe488c1a16cc186f2bf0 23-May-2012 Chih-Chung Chang <chihchung@google.com> Put a black View in front of SurfaceView.

This prevents SurfaceView from being transparent before the first draw.

Bug: 6507478
Change-Id: I2170f23d4c9844bfc3854d6120f5e72cc0d591ca
/packages/apps/Gallery2/src/com/android/gallery3d/ui/GLRootView.java
37c605949219b8bf54c165c34d6405f5f2989f50 18-May-2012 Owen Lin <owenlin@google.com> Add a new state uploading to UploadedTexture.

This state means the texture is being uploaded in background and should
not be drawn now to prevent janking.

Sometimes, we may lose GLContext and we will need to reupload
textures again. In this case, we would like to upload these texture in
foreground instead of using TextureUploader.
(for simplicity since this won't happen too often).

bug: 6519344
Change-Id: Ic5d7547c6a0eb4b044b79aa0eb4eb52397faac03
/packages/apps/Gallery2/src/com/android/gallery3d/ui/GLRootView.java
e919bcff63e898d53869725a979cdfd01ef92b08 22-May-2012 Chih-Chung Chang <chihchung@google.com> Hide status bar in lights out mode.

Bug: 6451200
Change-Id: I6ad5ffc203fd8e6be9191ba13a4a99eb716c4734
/packages/apps/Gallery2/src/com/android/gallery3d/ui/GLRootView.java
49affdc4e274098a34e4eb2dbe4a89a750f1ba7f 22-May-2012 Owen Lin <owenlin@google.com> Limit the size of a ScreenNail.

bug:6528366
This bug was happened because we are trying to make a texture beyond the
max size allowed in GL.

Here is what we do in this CL:
1. Limit the size of a screen nail
2. Print warning message, if we try to allocate a texture beyond the size
3. Don't show fall-back animation if the image is not loaded yet.

Change-Id: I004b1138efd0eef7ba11aa89556f67743ca46745
/packages/apps/Gallery2/src/com/android/gallery3d/ui/GLRootView.java
0b2486cff0c1b951c54325596256b986307f7f3a 18-May-2012 Chih-Chung Chang <chihchung@google.com> Use View.setSystemUiVisibility to enter/leave lights-out mode.

Bug: 6451200

Change-Id: I8e27b3e5eedfa2652f06dfc8f377c9cef8100160
/packages/apps/Gallery2/src/com/android/gallery3d/ui/GLRootView.java
79cf902f4cc602774e90bc2040f0029978becb61 16-May-2012 Owen Lin <owenlin@google.com> Fix a dead lock while we freeze the screen.

bug: 6504696
Change-Id: If960967142bb0df773ce075bf76f5726c37e1d27
/packages/apps/Gallery2/src/com/android/gallery3d/ui/GLRootView.java
1ade1266d8e13830e3b07c1ebd8c95f4e859e129 10-May-2012 Chih-Chung Chang <chihchung@google.com> Add freeze/unfreeze for GLRootView.

Change-Id: Ieb78041fea22b064d176ea1318cf5883d5d4c94f
/packages/apps/Gallery2/src/com/android/gallery3d/ui/GLRootView.java
2ef46ed28b28b355d7f3f1432c7b1196b832a859 08-May-2012 Chih-Chung Chang <chihchung@google.com> Better orientation change handling.

Bug 6451117: Preview location is wrong after rotating the device quickly
Bug 6444303: The preview location is wrong when camera is started upside down on tablet
Bug 6451710: Tap to focus broken in landscape

Change-Id: I12fd57d6618ec5521ccc6efcbf65de57ff2ea3d2
/packages/apps/Gallery2/src/com/android/gallery3d/ui/GLRootView.java
bd141b5a51c96f6fcaddfa547f0928ce69cf0755 26-Apr-2012 Chih-Chung Chang <chihchung@google.com> Support drawing in different orientation in Gallery.

Bug 6312994: Swipe UX: do not directly show the camera roll when camera starts
Bug 6313191: Swipe UX: Change swipe direction after the user rotated the device
Bug 6313192: Swiping UX: make Gallery display in rotated mode
Bug 6399447: Filmstrip: in Gallery, pressing Back from filmstrip doesn't perform the right animation
Bug 6399974: Filmstrip: when swiping from full-screen photo to filmstrip mode, camera view and the photo-roll don't align correctly
Bug 6400014: Swiping UX: in Camera portrait mode, tapping on the Thumbnail doesn't align camera view and the photo-roll correctly
Bug 6401075: Able to scroll through the gallery pics while capturing video.
Bug 6405087: Filmstrip does not change with orientation

Change-Id: I8c479d87800c63b7a95c199c0c1c3bc512d66d42
/packages/apps/Gallery2/src/com/android/gallery3d/ui/GLRootView.java
57d3cb26a80cdf6b20b2185b02ebf07f3bc2592c 25-Apr-2012 Chih-Chung Chang <chihchung@google.com> Remove scissor tests.

Change-Id: I9f2c462a251e518ce5954dde0eb6e509734254c4
/packages/apps/Gallery2/src/com/android/gallery3d/ui/GLRootView.java
b7ec5534c7b539be2397c27cfa5e8b992974c12d 02-Apr-2012 Chih-Chung Chang <chihchung@google.com> Add new filmstrip mode for PhotoView.

Change-Id: I9da9896303ced8d63a3557d5e6e9bc06fb366cf5
/packages/apps/Gallery2/src/com/android/gallery3d/ui/GLRootView.java
d8fb81f601830385a2343d08ad5dd171e4c7bfe0 29-Mar-2012 Owen Lin <owenlin@google.com> Upload textures in background.

Change-Id: I365f7be9aaab793366884249cbb10e8b6f0ab0e6
/packages/apps/Gallery2/src/com/android/gallery3d/ui/GLRootView.java
2b3ee0ea07246b859a5b75d8a6102a7cce7ec838 14-Mar-2012 Owen Lin <owenlin@google.com> Reorganize import for all files.

Change-Id: Ia9188bcde727e317e6a476caccaea562f0758b19
/packages/apps/Gallery2/src/com/android/gallery3d/ui/GLRootView.java
cb05834cedb8223fc59456afcd62fa7448f2b3b8 02-Mar-2012 Chih-Chung Chang <chihchung@google.com> Use AnimationTime for animation caluclation.

Change-Id: I3af8334978c054ddbc2050a240f0d9c113a44012
/packages/apps/Gallery2/src/com/android/gallery3d/ui/GLRootView.java
7b83fb8e3a8978b33a6b9bfc56d85fe2c1a9cf06 22-Feb-2012 Chih-Chung Chang <chihchung@google.com> Remove unused code.

Change-Id: I167596ab023671651df298ddb2b80b7c782f4223
/packages/apps/Gallery2/src/com/android/gallery3d/ui/GLRootView.java
7d19f7f4281f232b9dceee4a5df390c03e2bd16b 17-Feb-2012 Chih-Chung Chang <chihchung@google.com> Cache animation time value to reduce work and synchronize animation.

Change-Id: I00081bc6037c01dafc56cf017dcc1da448c1d106
/packages/apps/Gallery2/src/com/android/gallery3d/ui/GLRootView.java
3950038a697470bb8b7cd6798716aecd8285eb00 16-Feb-2012 Chih-Chung Chang <chihchung@google.com> Simplify the reference from textures to GLCanvas.

Change-Id: Ia64e60ec4b920b707148f7c2b9373ce484a52d9f
/packages/apps/Gallery2/src/com/android/gallery3d/ui/GLRootView.java
3d238a7a19b1010578709c63f86e12b2bce0e4fc 03-Feb-2012 Chih-Chung Chang <chihchung@google.com> Add profiling tools.

Change-Id: Ieab118ededaab5ef46408fac6fdb66b9fff4900e
/packages/apps/Gallery2/src/com/android/gallery3d/ui/GLRootView.java
6849ca0eb9c29c7e57c77bfede6363cbdfbea892 02-Nov-2011 Chih-Chung Chang <chihchung@google.com> 3252698: Make drawing target 60fps.

Change-Id: I5dbff93713422e49378b8e215cac8b7f749ef38a
/packages/apps/Gallery2/src/com/android/gallery3d/ui/GLRootView.java
f9a0a4306d589b4a4e20554fed512a603426bfa1 17-Aug-2011 Owen Lin <owenlin@google.com> Initial code for Gallery2.

fix: 5176434

Change-Id: I041e282b9c7b34ceb1db8b033be2b853bb3a992c
/packages/apps/Gallery2/src/com/android/gallery3d/ui/GLRootView.java