Loading libs/hwui/OpenGLRenderer.cpp +5 −4 Original line number Diff line number Diff line Loading @@ -240,14 +240,14 @@ bool OpenGLRenderer::restoreSnapshot() { mSaveCount--; mSnapshot = previous; if (restoreLayer) { composeLayer(current, previous); } if (restoreClip) { dirtyClip(); } if (restoreLayer) { composeLayer(current, previous); } return restoreClip; } Loading Loading @@ -447,6 +447,7 @@ bool OpenGLRenderer::createFboLayer(Layer* layer, Rect& bounds, sp<Snapshot> sna inverse.mapRect(clip); clip.snapToPixelBoundaries(); clip.intersect(bounds); clip.translate(-bounds.left, -bounds.top); snapshot->flags |= Snapshot::kFlagIsFboLayer; snapshot->fbo = layer->fbo; Loading tests/HwAccelerationTest/AndroidManifest.xml +2 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,8 @@ <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.android.test.hwui"> <uses-permission android:name="android.permission.INTERNET" /> <application android:label="HwUi" android:hardwareAccelerated="true"> Loading Loading
libs/hwui/OpenGLRenderer.cpp +5 −4 Original line number Diff line number Diff line Loading @@ -240,14 +240,14 @@ bool OpenGLRenderer::restoreSnapshot() { mSaveCount--; mSnapshot = previous; if (restoreLayer) { composeLayer(current, previous); } if (restoreClip) { dirtyClip(); } if (restoreLayer) { composeLayer(current, previous); } return restoreClip; } Loading Loading @@ -447,6 +447,7 @@ bool OpenGLRenderer::createFboLayer(Layer* layer, Rect& bounds, sp<Snapshot> sna inverse.mapRect(clip); clip.snapToPixelBoundaries(); clip.intersect(bounds); clip.translate(-bounds.left, -bounds.top); snapshot->flags |= Snapshot::kFlagIsFboLayer; snapshot->fbo = layer->fbo; Loading
tests/HwAccelerationTest/AndroidManifest.xml +2 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,8 @@ <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.android.test.hwui"> <uses-permission android:name="android.permission.INTERNET" /> <application android:label="HwUi" android:hardwareAccelerated="true"> Loading