add gpu to the default makefile
move skia-gpu files into skia/src/gpu



git-svn-id: http://skia.googlecode.com/svn/trunk@653 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gm/gmmain.cpp b/gm/gmmain.cpp
index c56edbd..5c9dcab 100644
--- a/gm/gmmain.cpp
+++ b/gm/gmmain.cpp
@@ -6,6 +6,11 @@
 #include "SkStream.h"
 #include "SkRefCnt.h"
 
+#include "GrContext.h"
+#include "SkGpuCanvas.h"
+#include "SkEGLContext.h"
+#include "SkDevice.h"
+
 #ifdef SK_SUPPORT_PDF
 	#include "SkPDFDevice.h"
 	#include "SkPDFDocument.h"
@@ -210,7 +215,12 @@
             }
 		}
 	}
-    
+
+    // setup a GL context for drawing offscreen
+    SkEGLContext eglContext;
+    eglContext.init(1024, 1024);
+    GrContext* context = GrContext::CreateGLShaderContext();
+
     Iter iter;
     GM* gm;
 
@@ -233,7 +243,12 @@
 			SkCanvas canvas(bitmap);
 
 			gm->draw(&canvas);
-
+            {
+                SkGpuCanvas gc(context);
+                gc.setDevice(gc.createDevice(bitmap.config(), bitmap.width(), bitmap.height(),
+                                             bitmap.isOpaque(), false))->unref(); 
+                gm->draw(&gc);
+            }
             SkString name = make_name(gm->shortName(), gRec[i].fName);
 
             if (writePath) {