Mark the SkBitmap used for video uploads as volatile. This tells Ganesh...

Mark the SkBitmap used for video uploads as volatile.  This tells Ganesh (Skia) not to create and destroy a GL texture on 
each upload of a new frame.
Review URL: http://codereview.chromium.org/7620011

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96551 0039d316-1c4b-4281-b951-d872f2087c98
parent 474e5dbb
...@@ -38,6 +38,7 @@ bool VideoRendererImpl::OnInitialize(media::VideoDecoder* decoder) { ...@@ -38,6 +38,7 @@ bool VideoRendererImpl::OnInitialize(media::VideoDecoder* decoder) {
decoder->width(), decoder->height()); decoder->width(), decoder->height());
bitmap_.allocPixels(); bitmap_.allocPixels();
bitmap_.eraseRGB(0x00, 0x00, 0x00); bitmap_.eraseRGB(0x00, 0x00, 0x00);
bitmap_.setIsVolatile(true);
return true; return true;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment