move utils/SkEGLContext to gpu/SkGLContext, some gpu.gyp cleanup, set eol style LF on all gpu files
Review URL: http://codereview.appspot.com/5242056/
git-svn-id: http://skia.googlecode.com/svn/trunk@2474 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/bench/benchmain.cpp b/bench/benchmain.cpp
index a2d2d75..3b2be8d 100644
--- a/bench/benchmain.cpp
+++ b/bench/benchmain.cpp
@@ -15,7 +15,7 @@
#include "SkBenchmark.h"
#include "SkCanvas.h"
#include "SkColorPriv.h"
-#include "SkEGLContext.h"
+#include "SkGLContext.h"
#include "SkGpuDevice.h"
#include "SkGraphics.h"
#include "SkImageEncoder.h"
@@ -416,8 +416,8 @@
GrRenderTarget* rt = NULL;
//Don't do GL when fixed.
#if !defined(SK_SCALAR_IS_FIXED)
- SkEGLContext eglContext;
- if (eglContext.init(1024, 1024)) {
+ SkGLContext glContext;
+ if (glContext.init(1024, 1024)) {
context = GrContext::CreateGLShaderContext();
if (NULL != context) {
GrPlatformSurfaceDesc desc;
@@ -426,7 +426,7 @@
desc.fWidth = 1024;
desc.fHeight = 1024;
desc.fStencilBits = 8;
- desc.fPlatformRenderTarget = eglContext.getFBOID();
+ desc.fPlatformRenderTarget = glContext.getFBOID();
desc.fSurfaceType = kRenderTarget_GrPlatformSurfaceType;
rt = static_cast<GrRenderTarget*>(context->createPlatformSurface(desc));
if (NULL == rt) {