summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorstuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-13 23:42:30 +0000
committerstuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-13 23:42:30 +0000
commit9989005fee0c940b693fa0b18a94f5c85179b271 (patch)
treeca00fa79ef40ba1c14cf728131b8c6e9c1a2019d /app
parentd3c71a2128ce8fdd0c61aed741be53d788e92e92 (diff)
downloadchromium_src-9989005fee0c940b693fa0b18a94f5c85179b271.zip
chromium_src-9989005fee0c940b693fa0b18a94f5c85179b271.tar.gz
chromium_src-9989005fee0c940b693fa0b18a94f5c85179b271.tar.bz2
Clear IOSurface to transparent, not white, so that transparent CA plugins work correctly
BUG=none TEST=Transparent CA plugins shouldn't have an opaque white background. Review URL: http://codereview.chromium.org/1732020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47221 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app')
-rw-r--r--app/surface/accelerated_surface_mac.cc2
-rw-r--r--app/surface/accelerated_surface_mac.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/surface/accelerated_surface_mac.cc b/app/surface/accelerated_surface_mac.cc
index a8f5a0e..2d6ac7a 100644
--- a/app/surface/accelerated_surface_mac.cc
+++ b/app/surface/accelerated_surface_mac.cc
@@ -216,7 +216,7 @@ bool AcceleratedSurface::MakeCurrent() {
}
void AcceleratedSurface::Clear(const gfx::Rect& rect) {
- glClearColor(1.0, 1.0, 1.0, 1.0);
+ glClearColor(0, 0, 0, 0);
glViewport(0, 0, rect.width(), rect.height());
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
diff --git a/app/surface/accelerated_surface_mac.h b/app/surface/accelerated_surface_mac.h
index 336d0bf..f01bbc7 100644
--- a/app/surface/accelerated_surface_mac.h
+++ b/app/surface/accelerated_surface_mac.h
@@ -54,7 +54,7 @@ class AcceleratedSurface {
// Sets the GL context to be the current one for drawing. Returns true if
// it succeeded.
bool MakeCurrent();
- // Clear the surface to all white. Assumes the caller has already called
+ // Clear the surface to be transparent. Assumes the caller has already called
// MakeCurrent().
void Clear(const gfx::Rect& rect);
// Call after making changes to the surface which require a visual update.