Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Side by Side Diff: Source/web/WebPluginContainerImpl.cpp

Issue 316373005: Psuedo revert "s/scheduleLayerUpdate/setNeedsCompositingUpdate in setWebLayer." (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 } 284 }
285 285
286 void WebPluginContainerImpl::setWebLayer(WebLayer* layer) 286 void WebPluginContainerImpl::setWebLayer(WebLayer* layer)
287 { 287 {
288 if (m_webLayer == layer) 288 if (m_webLayer == layer)
289 return; 289 return;
290 290
291 // If anyone of the layers is null we need to switch between hardware 291 // If anyone of the layers is null we need to switch between hardware
292 // and software compositing. 292 // and software compositing.
293 if (!m_webLayer || !layer) 293 if (!m_webLayer || !layer)
294 m_element->setNeedsCompositingUpdate(); 294 m_element->scheduleSVGFilterLayerUpdateHack();
295 if (m_webLayer) 295 if (m_webLayer)
296 GraphicsLayer::unregisterContentsLayer(m_webLayer); 296 GraphicsLayer::unregisterContentsLayer(m_webLayer);
297 if (layer) 297 if (layer)
298 GraphicsLayer::registerContentsLayer(layer); 298 GraphicsLayer::registerContentsLayer(layer);
299 m_webLayer = layer; 299 m_webLayer = layer;
300 } 300 }
301 301
302 bool WebPluginContainerImpl::supportsPaginatedPrint() const 302 bool WebPluginContainerImpl::supportsPaginatedPrint() const
303 { 303 {
304 return m_webPlugin->supportsPaginatedPrint(); 304 return m_webPlugin->supportsPaginatedPrint();
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after
895 895
896 return clipRect; 896 return clipRect;
897 } 897 }
898 898
899 bool WebPluginContainerImpl::pluginShouldPersist() const 899 bool WebPluginContainerImpl::pluginShouldPersist() const
900 { 900 {
901 return m_webPlugin->shouldPersist(); 901 return m_webPlugin->shouldPersist();
902 } 902 }
903 903
904 } // namespace blink 904 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698