aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/SkGpuDevice.cpp
diff options
context:
space:
mode:
authorGravatar tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-11-09 22:15:08 +0000
committerGravatar tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-11-09 22:15:08 +0000
commitf74ad8c91aef4f328dbcbcebae9e436c00a35140 (patch)
tree0acc3d6ba630a5efca8f1b7bcd60e6c051634381 /src/gpu/SkGpuDevice.cpp
parent5a5c2ab3a8cc9cea94bcd883fd983512314a2ef3 (diff)
Removes warnings generated by gcc and clang.
git-svn-id: http://skia.googlecode.com/svn/trunk@2651 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/SkGpuDevice.cpp')
-rw-r--r--src/gpu/SkGpuDevice.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp
index 8ad951dacd..64d74ee8ab 100644
--- a/src/gpu/SkGpuDevice.cpp
+++ b/src/gpu/SkGpuDevice.cpp
@@ -743,7 +743,7 @@ static GrTexture* gaussianBlur(GrContext* context, GrTexture* srcTexture,
kNone_GrAALevel,
srcRect.width(),
srcRect.height(),
- kRGBA_8888_GrPixelConfig
+ { kRGBA_8888_GrPixelConfig }
};
temp1->set(context, desc);
@@ -883,7 +883,7 @@ static bool drawWithGPUMaskFilter(GrContext* context, const SkPath& path,
srcRect.height(),
// We actually only need A8, but it often isn't supported as a
// render target
- kRGBA_8888_PM_GrPixelConfig
+ { kRGBA_8888_PM_GrPixelConfig }
};
GrAutoScratchTexture pathEntry(context, desc);
@@ -1014,7 +1014,7 @@ static bool drawWithMaskFilter(GrContext* context, const SkPath& path,
kNone_GrAALevel,
dstM.fBounds.width(),
dstM.fBounds.height(),
- kAlpha_8_GrPixelConfig
+ { kAlpha_8_GrPixelConfig }
};
GrAutoScratchTexture ast(context, desc);
@@ -1659,7 +1659,7 @@ SkGpuDevice::TexCache SkGpuDevice::lockCachedTexture(const SkBitmap& bitmap,
kNone_GrAALevel,
bitmap.width(),
bitmap.height(),
- SkGr::Bitmap2PixelConfig(bitmap)
+ { SkGr::Bitmap2PixelConfig(bitmap) }
};
GrContext::ScratchTexMatch match;
if (kSaveLayerDeviceRenderTarget_TexType == type) {