Merge "Allocate layers from the layers pool. Bug #3413433" into honeycomb
This commit is contained in:
@@ -66,10 +66,11 @@ class GLES20Layer extends HardwareLayer {
|
||||
@Override
|
||||
void resize(int width, int height) {
|
||||
if (!isValid() || width <= 0 || height <= 0) return;
|
||||
if (width > mLayerWidth || height > mLayerHeight) {
|
||||
mWidth = width;
|
||||
mHeight = height;
|
||||
|
||||
mWidth = width;
|
||||
mHeight = height;
|
||||
|
||||
if (width != mLayerWidth || height != mLayerHeight) {
|
||||
int[] layerInfo = new int[2];
|
||||
|
||||
GLES20Canvas.nResizeLayer(mLayer, width, height, layerInfo);
|
||||
|
||||
Reference in New Issue
Block a user