Disable plugin content copy when 0x0 pixels
bug:5382635 Change-Id: I83f999d9e2dd0dc51a6c2f780f2f2b7add95a60a
This commit is contained in:
@@ -45,7 +45,7 @@ AnimationThread::AnimationThread(NPP npp) : RenderingThread(npp) {
|
||||
m_paint = new SkPaint;
|
||||
m_paint->setAntiAlias(true);
|
||||
|
||||
m_bitmap = constructBitmap(DEFAULT_WIDTH, DEFAULT_HEIGHT);
|
||||
m_bitmap = constructBitmap(0, 0);
|
||||
m_canvas = new SkCanvas(*m_bitmap);
|
||||
|
||||
m_startExecutionTime = 0;
|
||||
@@ -95,11 +95,6 @@ bool AnimationThread::threadLoop() {
|
||||
int width, height;
|
||||
getDimensions(width, height);
|
||||
|
||||
if (width <= 0)
|
||||
width = DEFAULT_WIDTH;
|
||||
if (height <= 0)
|
||||
height = DEFAULT_HEIGHT;
|
||||
|
||||
if (m_bitmap->width() != width || m_bitmap->height() != height) {
|
||||
delete m_canvas;
|
||||
delete m_bitmap;
|
||||
|
||||
Reference in New Issue
Block a user