blob: 85846e76e538a37eae7a98084eb688facdc34ea3 [file] [log] [blame]
bsalomon@google.comc6980972011-11-02 19:57:21 +00001/*
2 * Copyright 2011 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
robertphillips@google.com73672252013-08-29 12:40:26 +00008#include "SkBitmapDevice.h"
bsalomon@google.comc6980972011-11-02 19:57:21 +00009#include "SkCanvas.h"
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +000010#include "SkColorPriv.h"
reed@google.com4b163ed2012-08-07 21:35:13 +000011#include "SkMathPriv.h"
bsalomon@google.comc6980972011-11-02 19:57:21 +000012#include "SkRegion.h"
tfarina@chromium.org4ee16bf2014-01-10 22:08:27 +000013#include "Test.h"
14#include "TestClassDef.h"
15
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +000016#if SK_SUPPORT_GPU
bsalomon@google.comc6980972011-11-02 19:57:21 +000017#include "SkGpuDevice.h"
bsalomon@google.com67b915d2013-02-04 16:13:32 +000018#include "GrContextFactory.h"
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +000019#endif
bsalomon@google.comc6980972011-11-02 19:57:21 +000020
bsalomon@google.comc6980972011-11-02 19:57:21 +000021static const int DEV_W = 100, DEV_H = 100;
22static const SkIRect DEV_RECT = SkIRect::MakeWH(DEV_W, DEV_H);
rmistry@google.comd6176b02012-08-23 18:14:13 +000023static const SkRect DEV_RECT_S = SkRect::MakeWH(DEV_W * SK_Scalar1,
bsalomon@google.comc6980972011-11-02 19:57:21 +000024 DEV_H * SK_Scalar1);
25
commit-bot@chromium.orgddf94cf2013-10-12 17:25:17 +000026static SkPMColor getCanvasColor(int x, int y) {
bsalomon@google.comc6980972011-11-02 19:57:21 +000027 SkASSERT(x >= 0 && x < DEV_W);
28 SkASSERT(y >= 0 && y < DEV_H);
bsalomon@google.com6850eab2011-11-03 20:29:47 +000029
30 U8CPU r = x;
31 U8CPU g = y;
32 U8CPU b = 0xc;
33
34 U8CPU a = 0xff;
bsalomon@google.comc4364992011-11-07 15:54:49 +000035 switch ((x+y) % 5) {
bsalomon@google.com6850eab2011-11-03 20:29:47 +000036 case 0:
37 a = 0xff;
38 break;
39 case 1:
40 a = 0x80;
41 break;
42 case 2:
43 a = 0xCC;
44 break;
45 case 4:
46 a = 0x01;
47 break;
48 case 3:
49 a = 0x00;
50 break;
51 }
52 return SkPremultiplyARGBInline(a, r, g, b);
bsalomon@google.comc6980972011-11-02 19:57:21 +000053}
rmistry@google.comd6176b02012-08-23 18:14:13 +000054
commit-bot@chromium.orgddf94cf2013-10-12 17:25:17 +000055static SkPMColor getBitmapColor(int x, int y, int w) {
bsalomon@google.comc6980972011-11-02 19:57:21 +000056 int n = y * w + x;
bsalomon@google.com6850eab2011-11-03 20:29:47 +000057
bsalomon@google.comc6980972011-11-02 19:57:21 +000058 U8CPU b = n & 0xff;
59 U8CPU g = (n >> 8) & 0xff;
60 U8CPU r = (n >> 16) & 0xff;
61 return SkPackARGB32(0xff, r, g , b);
62}
63
commit-bot@chromium.orgddf94cf2013-10-12 17:25:17 +000064static SkPMColor convertConfig8888ToPMColor(SkCanvas::Config8888 config8888,
65 uint32_t color,
66 bool* premul) {
bsalomon@google.com6850eab2011-11-03 20:29:47 +000067 const uint8_t* c = reinterpret_cast<uint8_t*>(&color);
68 U8CPU a,r,g,b;
bsalomon@google.comc4364992011-11-07 15:54:49 +000069 *premul = false;
bsalomon@google.com6850eab2011-11-03 20:29:47 +000070 switch (config8888) {
71 case SkCanvas::kNative_Premul_Config8888:
72 return color;
73 case SkCanvas::kNative_Unpremul_Config8888:
bsalomon@google.comc4364992011-11-07 15:54:49 +000074 *premul = true;
bsalomon@google.com6850eab2011-11-03 20:29:47 +000075 a = SkGetPackedA32(color);
76 r = SkGetPackedR32(color);
77 g = SkGetPackedG32(color);
78 b = SkGetPackedB32(color);
79 break;
80 case SkCanvas::kBGRA_Unpremul_Config8888:
bsalomon@google.comc4364992011-11-07 15:54:49 +000081 *premul = true; // fallthru
bsalomon@google.com6850eab2011-11-03 20:29:47 +000082 case SkCanvas::kBGRA_Premul_Config8888:
83 a = static_cast<U8CPU>(c[3]);
84 r = static_cast<U8CPU>(c[2]);
85 g = static_cast<U8CPU>(c[1]);
86 b = static_cast<U8CPU>(c[0]);
87 break;
88 case SkCanvas::kRGBA_Unpremul_Config8888:
bsalomon@google.comc4364992011-11-07 15:54:49 +000089 *premul = true; // fallthru
bsalomon@google.com6850eab2011-11-03 20:29:47 +000090 case SkCanvas::kRGBA_Premul_Config8888:
91 a = static_cast<U8CPU>(c[3]);
92 r = static_cast<U8CPU>(c[0]);
93 g = static_cast<U8CPU>(c[1]);
94 b = static_cast<U8CPU>(c[2]);
95 break;
bsalomon@google.comccaa0022012-09-25 19:55:07 +000096 default:
97 SkDEBUGFAIL("Unexpected Config8888");
98 return 0;
bsalomon@google.com6850eab2011-11-03 20:29:47 +000099 }
bsalomon@google.comc4364992011-11-07 15:54:49 +0000100 if (*premul) {
bsalomon@google.com6850eab2011-11-03 20:29:47 +0000101 r = SkMulDiv255Ceiling(r, a);
102 g = SkMulDiv255Ceiling(g, a);
103 b = SkMulDiv255Ceiling(b, a);
104 }
105 return SkPackARGB32(a, r, g, b);
106}
107
commit-bot@chromium.orgddf94cf2013-10-12 17:25:17 +0000108static void fillCanvas(SkCanvas* canvas) {
bsalomon@google.comc6980972011-11-02 19:57:21 +0000109 static SkBitmap bmp;
110 if (bmp.isNull()) {
111 bmp.setConfig(SkBitmap::kARGB_8888_Config, DEV_W, DEV_H);
reed@google.com44a42ea2012-10-01 17:54:05 +0000112 SkDEBUGCODE(bool alloc =) bmp.allocPixels();
bsalomon@google.comc6980972011-11-02 19:57:21 +0000113 SkASSERT(alloc);
114 SkAutoLockPixels alp(bmp);
115 intptr_t pixels = reinterpret_cast<intptr_t>(bmp.getPixels());
116 for (int y = 0; y < DEV_H; ++y) {
117 for (int x = 0; x < DEV_W; ++x) {
118 SkPMColor* pixel = reinterpret_cast<SkPMColor*>(pixels + y * bmp.rowBytes() + x * bmp.bytesPerPixel());
119 *pixel = getCanvasColor(x, y);
120 }
121 }
122 }
123 canvas->save();
124 canvas->setMatrix(SkMatrix::I());
125 canvas->clipRect(DEV_RECT_S, SkRegion::kReplace_Op);
126 SkPaint paint;
127 paint.setXfermodeMode(SkXfermode::kSrc_Mode);
128 canvas->drawBitmap(bmp, 0, 0, &paint);
129 canvas->restore();
130}
rmistry@google.comd6176b02012-08-23 18:14:13 +0000131
commit-bot@chromium.orgddf94cf2013-10-12 17:25:17 +0000132static void fillBitmap(SkBitmap* bitmap) {
bsalomon@google.comc6980972011-11-02 19:57:21 +0000133 SkASSERT(bitmap->lockPixelsAreWritable());
134 SkAutoLockPixels alp(*bitmap);
135 int w = bitmap->width();
136 int h = bitmap->height();
137 intptr_t pixels = reinterpret_cast<intptr_t>(bitmap->getPixels());
138 for (int y = 0; y < h; ++y) {
139 for (int x = 0; x < w; ++x) {
140 SkPMColor* pixel = reinterpret_cast<SkPMColor*>(pixels + y * bitmap->rowBytes() + x * bitmap->bytesPerPixel());
sugoi@google.com54f0d1b2013-02-27 19:17:41 +0000141 *pixel = getBitmapColor(x, y, w);
bsalomon@google.comc6980972011-11-02 19:57:21 +0000142 }
143 }
144}
145
commit-bot@chromium.orgddf94cf2013-10-12 17:25:17 +0000146static bool checkPixel(SkPMColor a, SkPMColor b, bool didPremulConversion) {
bsalomon@google.comc4364992011-11-07 15:54:49 +0000147 if (!didPremulConversion) {
148 return a == b;
149 }
150 int32_t aA = static_cast<int32_t>(SkGetPackedA32(a));
151 int32_t aR = static_cast<int32_t>(SkGetPackedR32(a));
152 int32_t aG = static_cast<int32_t>(SkGetPackedG32(a));
153 int32_t aB = SkGetPackedB32(a);
154
155 int32_t bA = static_cast<int32_t>(SkGetPackedA32(b));
156 int32_t bR = static_cast<int32_t>(SkGetPackedR32(b));
157 int32_t bG = static_cast<int32_t>(SkGetPackedG32(b));
158 int32_t bB = static_cast<int32_t>(SkGetPackedB32(b));
159
160 return aA == bA &&
161 SkAbs32(aR - bR) <= 1 &&
162 SkAbs32(aG - bG) <= 1 &&
163 SkAbs32(aB - bB) <= 1;
164}
165
bsalomon@google.comc6980972011-11-02 19:57:21 +0000166// checks the bitmap contains correct pixels after the readPixels
167// if the bitmap was prefilled with pixels it checks that these weren't
168// overwritten in the area outside the readPixels.
commit-bot@chromium.orgddf94cf2013-10-12 17:25:17 +0000169static bool checkRead(skiatest::Reporter* reporter,
170 const SkBitmap& bitmap,
171 int x, int y,
172 bool checkCanvasPixels,
173 bool checkBitmapPixels,
174 SkCanvas::Config8888 config8888) {
bsalomon@google.comc6980972011-11-02 19:57:21 +0000175 SkASSERT(SkBitmap::kARGB_8888_Config == bitmap.config());
176 SkASSERT(!bitmap.isNull());
bsalomon@google.com6850eab2011-11-03 20:29:47 +0000177 SkASSERT(checkCanvasPixels || checkBitmapPixels);
rmistry@google.comd6176b02012-08-23 18:14:13 +0000178
bsalomon@google.comc6980972011-11-02 19:57:21 +0000179 int bw = bitmap.width();
180 int bh = bitmap.height();
181
182 SkIRect srcRect = SkIRect::MakeXYWH(x, y, bw, bh);
183 SkIRect clippedSrcRect = DEV_RECT;
184 if (!clippedSrcRect.intersect(srcRect)) {
185 clippedSrcRect.setEmpty();
186 }
bsalomon@google.comc6980972011-11-02 19:57:21 +0000187 SkAutoLockPixels alp(bitmap);
188 intptr_t pixels = reinterpret_cast<intptr_t>(bitmap.getPixels());
189 for (int by = 0; by < bh; ++by) {
190 for (int bx = 0; bx < bw; ++bx) {
191 int devx = bx + srcRect.fLeft;
192 int devy = by + srcRect.fTop;
rmistry@google.comd6176b02012-08-23 18:14:13 +0000193
bsalomon@google.comc4364992011-11-07 15:54:49 +0000194 uint32_t pixel = *reinterpret_cast<SkPMColor*>(pixels + by * bitmap.rowBytes() + bx * bitmap.bytesPerPixel());
bsalomon@google.comc6980972011-11-02 19:57:21 +0000195
196 if (clippedSrcRect.contains(devx, devy)) {
bsalomon@google.com6850eab2011-11-03 20:29:47 +0000197 if (checkCanvasPixels) {
198 SkPMColor canvasPixel = getCanvasColor(devx, devy);
bsalomon@google.comc4364992011-11-07 15:54:49 +0000199 bool didPremul;
200 SkPMColor pmPixel = convertConfig8888ToPMColor(config8888, pixel, &didPremul);
201 bool check;
202 REPORTER_ASSERT(reporter, check = checkPixel(pmPixel, canvasPixel, didPremul));
203 if (!check) {
bsalomon@google.com72f3dca2012-08-17 13:32:06 +0000204 return false;
bsalomon@google.com6850eab2011-11-03 20:29:47 +0000205 }
bsalomon@google.comc6980972011-11-02 19:57:21 +0000206 }
bsalomon@google.com6850eab2011-11-03 20:29:47 +0000207 } else if (checkBitmapPixels) {
sugoi@google.com54f0d1b2013-02-27 19:17:41 +0000208 REPORTER_ASSERT(reporter, getBitmapColor(bx, by, bw) == pixel);
209 if (getBitmapColor(bx, by, bw) != pixel) {
bsalomon@google.com72f3dca2012-08-17 13:32:06 +0000210 return false;
bsalomon@google.comc6980972011-11-02 19:57:21 +0000211 }
212 }
213 }
214 }
bsalomon@google.com72f3dca2012-08-17 13:32:06 +0000215 return true;
bsalomon@google.comc6980972011-11-02 19:57:21 +0000216}
217
218enum BitmapInit {
219 kFirstBitmapInit = 0,
rmistry@google.comd6176b02012-08-23 18:14:13 +0000220
bsalomon@google.comc6980972011-11-02 19:57:21 +0000221 kNoPixels_BitmapInit = kFirstBitmapInit,
222 kTight_BitmapInit,
223 kRowBytes_BitmapInit,
rmistry@google.comd6176b02012-08-23 18:14:13 +0000224
bsalomon@google.comc6980972011-11-02 19:57:21 +0000225 kBitmapInitCnt
226};
227
commit-bot@chromium.orgddf94cf2013-10-12 17:25:17 +0000228static BitmapInit nextBMI(BitmapInit bmi) {
bsalomon@google.comc6980972011-11-02 19:57:21 +0000229 int x = bmi;
230 return static_cast<BitmapInit>(++x);
231}
232
commit-bot@chromium.orgddf94cf2013-10-12 17:25:17 +0000233static void init_bitmap(SkBitmap* bitmap, const SkIRect& rect, BitmapInit init) {
bsalomon@google.comc6980972011-11-02 19:57:21 +0000234 int w = rect.width();
235 int h = rect.height();
236 int rowBytes = 0;
237 bool alloc = true;
238 switch (init) {
239 case kNoPixels_BitmapInit:
240 alloc = false;
241 case kTight_BitmapInit:
242 break;
243 case kRowBytes_BitmapInit:
244 rowBytes = w * sizeof(SkPMColor) + 16 * sizeof(SkPMColor);
245 break;
246 default:
247 SkASSERT(0);
248 break;
249 }
250 bitmap->setConfig(SkBitmap::kARGB_8888_Config, w, h, rowBytes);
251 if (alloc) {
252 bitmap->allocPixels();
253 }
254}
255
tfarina@chromium.org4ee16bf2014-01-10 22:08:27 +0000256DEF_GPUTEST(ReadPixels, reporter, factory) {
bsalomon@google.comc6980972011-11-02 19:57:21 +0000257 const SkIRect testRects[] = {
258 // entire thing
259 DEV_RECT,
260 // larger on all sides
261 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, DEV_H + 10),
262 // fully contained
263 SkIRect::MakeLTRB(DEV_W / 4, DEV_H / 4, 3 * DEV_W / 4, 3 * DEV_H / 4),
264 // outside top left
265 SkIRect::MakeLTRB(-10, -10, -1, -1),
266 // touching top left corner
267 SkIRect::MakeLTRB(-10, -10, 0, 0),
268 // overlapping top left corner
269 SkIRect::MakeLTRB(-10, -10, DEV_W / 4, DEV_H / 4),
270 // overlapping top left and top right corners
271 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, DEV_H / 4),
272 // touching entire top edge
273 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, 0),
274 // overlapping top right corner
275 SkIRect::MakeLTRB(3 * DEV_W / 4, -10, DEV_W + 10, DEV_H / 4),
276 // contained in x, overlapping top edge
277 SkIRect::MakeLTRB(DEV_W / 4, -10, 3 * DEV_W / 4, DEV_H / 4),
278 // outside top right corner
279 SkIRect::MakeLTRB(DEV_W + 1, -10, DEV_W + 10, -1),
280 // touching top right corner
281 SkIRect::MakeLTRB(DEV_W, -10, DEV_W + 10, 0),
282 // overlapping top left and bottom left corners
283 SkIRect::MakeLTRB(-10, -10, DEV_W / 4, DEV_H + 10),
284 // touching entire left edge
285 SkIRect::MakeLTRB(-10, -10, 0, DEV_H + 10),
286 // overlapping bottom left corner
287 SkIRect::MakeLTRB(-10, 3 * DEV_H / 4, DEV_W / 4, DEV_H + 10),
288 // contained in y, overlapping left edge
289 SkIRect::MakeLTRB(-10, DEV_H / 4, DEV_W / 4, 3 * DEV_H / 4),
290 // outside bottom left corner
291 SkIRect::MakeLTRB(-10, DEV_H + 1, -1, DEV_H + 10),
292 // touching bottom left corner
293 SkIRect::MakeLTRB(-10, DEV_H, 0, DEV_H + 10),
294 // overlapping bottom left and bottom right corners
295 SkIRect::MakeLTRB(-10, 3 * DEV_H / 4, DEV_W + 10, DEV_H + 10),
296 // touching entire left edge
297 SkIRect::MakeLTRB(0, DEV_H, DEV_W, DEV_H + 10),
298 // overlapping bottom right corner
299 SkIRect::MakeLTRB(3 * DEV_W / 4, 3 * DEV_H / 4, DEV_W + 10, DEV_H + 10),
300 // overlapping top right and bottom right corners
301 SkIRect::MakeLTRB(3 * DEV_W / 4, -10, DEV_W + 10, DEV_H + 10),
302 };
303
senorblanco@chromium.org3cb406b2013-02-05 19:50:46 +0000304 for (int dtype = 0; dtype < 3; ++dtype) {
bsalomon@google.com67b915d2013-02-04 16:13:32 +0000305 int glCtxTypeCnt = 1;
306#if SK_SUPPORT_GPU
307 if (0 != dtype) {
308 glCtxTypeCnt = GrContextFactory::kGLContextTypeCnt;
bsalomon@google.comc6980972011-11-02 19:57:21 +0000309 }
djsollen@google.com8688e5b2012-01-09 13:02:20 +0000310#endif
bsalomon@google.com67b915d2013-02-04 16:13:32 +0000311 for (int glCtxType = 0; glCtxType < glCtxTypeCnt; ++glCtxType) {
robertphillips@google.com1f2f3382013-08-29 11:54:56 +0000312 SkAutoTUnref<SkBaseDevice> device;
bsalomon@google.com67b915d2013-02-04 16:13:32 +0000313 if (0 == dtype) {
skia.committer@gmail.com772c4e62013-08-30 07:01:34 +0000314 device.reset(new SkBitmapDevice(SkBitmap::kARGB_8888_Config,
robertphillips@google.com1f2f3382013-08-29 11:54:56 +0000315 DEV_W, DEV_H, false));
bsalomon@google.com67b915d2013-02-04 16:13:32 +0000316 } else {
317#if SK_SUPPORT_GPU
318 GrContextFactory::GLContextType type =
319 static_cast<GrContextFactory::GLContextType>(glCtxType);
320 if (!GrContextFactory::IsRenderingGLContext(type)) {
321 continue;
bsalomon@google.comc6980972011-11-02 19:57:21 +0000322 }
bsalomon@google.com67b915d2013-02-04 16:13:32 +0000323 GrContext* context = factory->get(type);
324 if (NULL == context) {
325 continue;
326 }
senorblanco@chromium.org3cb406b2013-02-05 19:50:46 +0000327 GrTextureDesc desc;
328 desc.fFlags = kRenderTarget_GrTextureFlagBit | kNoStencil_GrTextureFlagBit;
329 desc.fWidth = DEV_W;
330 desc.fHeight = DEV_H;
bsalomon@google.comfec0bc32013-02-07 14:43:04 +0000331 desc.fConfig = kSkia8888_GrPixelConfig;
senorblanco@chromium.org3cb406b2013-02-05 19:50:46 +0000332 desc.fOrigin = 1 == dtype ? kBottomLeft_GrSurfaceOrigin
333 : kTopLeft_GrSurfaceOrigin;
334 GrAutoScratchTexture ast(context, desc, GrContext::kExact_ScratchTexMatch);
335 SkAutoTUnref<GrTexture> tex(ast.detach());
336 device.reset(new SkGpuDevice(context, tex));
bsalomon@google.com67b915d2013-02-04 16:13:32 +0000337#else
338 continue;
339#endif
340 }
341 SkCanvas canvas(device);
342 fillCanvas(&canvas);
343
344 static const SkCanvas::Config8888 gReadConfigs[] = {
345 SkCanvas::kNative_Premul_Config8888,
346 SkCanvas::kNative_Unpremul_Config8888,
commit-bot@chromium.org28621512013-08-07 19:43:45 +0000347
bsalomon@google.com67b915d2013-02-04 16:13:32 +0000348 SkCanvas::kBGRA_Premul_Config8888,
349 SkCanvas::kBGRA_Unpremul_Config8888,
commit-bot@chromium.org28621512013-08-07 19:43:45 +0000350
bsalomon@google.com67b915d2013-02-04 16:13:32 +0000351 SkCanvas::kRGBA_Premul_Config8888,
352 SkCanvas::kRGBA_Unpremul_Config8888,
353 };
354 for (size_t rect = 0; rect < SK_ARRAY_COUNT(testRects); ++rect) {
355 const SkIRect& srcRect = testRects[rect];
356 for (BitmapInit bmi = kFirstBitmapInit;
357 bmi < kBitmapInitCnt;
358 bmi = nextBMI(bmi)) {
359 for (size_t c = 0; c < SK_ARRAY_COUNT(gReadConfigs); ++c) {
360 SkCanvas::Config8888 config8888 = gReadConfigs[c];
361 SkBitmap bmp;
362 init_bitmap(&bmp, srcRect, bmi);
363
364 // if the bitmap has pixels allocated before the readPixels,
365 // note that and fill them with pattern
366 bool startsWithPixels = !bmp.isNull();
367 if (startsWithPixels) {
368 fillBitmap(&bmp);
369 }
370 uint32_t idBefore = canvas.getDevice()->accessBitmap(false).getGenerationID();
371 bool success =
372 canvas.readPixels(&bmp, srcRect.fLeft,
373 srcRect.fTop, config8888);
374 uint32_t idAfter = canvas.getDevice()->accessBitmap(false).getGenerationID();
375
376 // we expect to succeed when the read isn't fully clipped
377 // out.
378 bool expectSuccess = SkIRect::Intersects(srcRect, DEV_RECT);
379 // determine whether we expected the read to succeed.
380 REPORTER_ASSERT(reporter, success == expectSuccess);
381 // read pixels should never change the gen id
382 REPORTER_ASSERT(reporter, idBefore == idAfter);
383
384 if (success || startsWithPixels) {
385 checkRead(reporter, bmp, srcRect.fLeft, srcRect.fTop,
386 success, startsWithPixels, config8888);
387 } else {
388 // if we had no pixels beforehand and the readPixels
389 // failed then our bitmap should still not have pixels
390 REPORTER_ASSERT(reporter, bmp.isNull());
391 }
392 }
393 // check the old webkit version of readPixels that clips the
394 // bitmap size
395 SkBitmap wkbmp;
396 bool success = canvas.readPixels(srcRect, &wkbmp);
397 SkIRect clippedRect = DEV_RECT;
398 if (clippedRect.intersect(srcRect)) {
399 REPORTER_ASSERT(reporter, success);
400 checkRead(reporter, wkbmp, clippedRect.fLeft,
401 clippedRect.fTop, true, false,
402 SkCanvas::kNative_Premul_Config8888);
403 } else {
404 REPORTER_ASSERT(reporter, !success);
405 }
bsalomon@google.comc6980972011-11-02 19:57:21 +0000406 }
407 }
408 }
409 }
410}