From 27543452369d6a2cdcc058cb5f92910d7a47e823 Mon Sep 17 00:00:00 2001 From: "jamesr@chromium.org" Date: Fri, 25 Mar 2011 00:14:00 +0000 Subject: Adds a TransportDIB::Id value that is explicitly invalid and use it when compositing BUG=76001 TEST= Review URL: http://codereview.chromium.org/6665029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79349 0039d316-1c4b-4281-b951-d872f2087c98 --- content/plugin/webplugin_accelerated_surface_proxy_mac.cc | 2 +- content/plugin/webplugin_proxy.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'content/plugin') diff --git a/content/plugin/webplugin_accelerated_surface_proxy_mac.cc b/content/plugin/webplugin_accelerated_surface_proxy_mac.cc index 7f5d486..ec4571d 100644 --- a/content/plugin/webplugin_accelerated_surface_proxy_mac.cc +++ b/content/plugin/webplugin_accelerated_surface_proxy_mac.cc @@ -51,7 +51,7 @@ void WebPluginAcceleratedSurfaceProxy::SetSize(const gfx::Size& size) { plugin_proxy_->SetAcceleratedSurface(window_handle_, size, io_surface_id); } else { TransportDIB::Handle transport_dib = surface_->SetTransportDIBSize(size); - if (TransportDIB::is_valid(transport_dib)) { + if (TransportDIB::is_valid_handle(transport_dib)) { plugin_proxy_->SetAcceleratedDIB(window_handle_, size, transport_dib); } } diff --git a/content/plugin/webplugin_proxy.cc b/content/plugin/webplugin_proxy.cc index 57e61b2..108d455 100644 --- a/content/plugin/webplugin_proxy.cc +++ b/content/plugin/webplugin_proxy.cc @@ -412,7 +412,7 @@ void WebPluginProxy::UpdateGeometry( // Update the buffers before doing anything that could call into plugin code, // so that we don't process buffer changes out of order if plugins make // synchronous calls that lead to nested UpdateGeometry calls. - if (TransportDIB::is_valid(windowless_buffer)) { + if (TransportDIB::is_valid_handle(windowless_buffer)) { // The plugin's rect changed, so now we have a new buffer to draw into. SetWindowlessBuffer(windowless_buffer, background_buffer, window_rect); } -- cgit v1.1