Chromium Code Reviews| Index: chrome/browser/renderer_host/accelerated_surface_container_manager_mac.cc |
| diff --git a/chrome/browser/renderer_host/accelerated_surface_container_manager_mac.cc b/chrome/browser/renderer_host/accelerated_surface_container_manager_mac.cc |
| index 77be3ace4bf562d4e5984afc2ffc9dd21db7fb90..b123f768336adaf2a0219448ff5ab196cdfa240d 100644 |
| --- a/chrome/browser/renderer_host/accelerated_surface_container_manager_mac.cc |
| +++ b/chrome/browser/renderer_host/accelerated_surface_container_manager_mac.cc |
| @@ -99,7 +99,10 @@ void AcceleratedSurfaceContainerManagerMac::Draw(CGLContextObj context, |
| AutoLock lock(lock_); |
| glColorMask(true, true, true, true); |
| - glClearColor(0, 0, 0, 0); |
| + // Should match the clear color of RenderWidgetHostViewMac. |
| + glClearColor(255, 255, 255, 255); |
|
stuartmorgan
2010/11/05 17:35:26
This needs to be conditional on the surface being
|
| + // TODO(thakis): Clearing the whole color buffer is wasteful, since most of |
| + // it is overwritten by the surface. |
| glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); |
| glDisable(GL_DEPTH_TEST); |
| glDisable(GL_BLEND); |