From: robertphillips@google.com Date: Mon, 19 Mar 2012 17:33:58 +0000 (+0000) Subject: rolling back to r3427 X-Git-Tag: accepted/tizen/5.0/unified/20181102.025319~16617 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d41a1dc7a8939527232890b18218f587730042c8;p=platform%2Fupstream%2FlibSkiaSharp.git rolling back to r3427 git-svn-id: http://skia.googlecode.com/svn/trunk@3430 2bbb7eff-a529-9590-31e7-b0007b416f81 --- diff --git a/src/gpu/gl/GrGLCreateDebugInterface.cpp b/src/gpu/gl/GrGLCreateDebugInterface.cpp index 7394f5b..3b2a376 100644 --- a/src/gpu/gl/GrGLCreateDebugInterface.cpp +++ b/src/gpu/gl/GrGLCreateDebugInterface.cpp @@ -100,17 +100,17 @@ public: GrAlwaysAssert(size >= 0); // delete pre-existing data - delete[] fDataPtr; + delete fDataPtr; fSize = size; - fDataPtr = new GrGLchar[size]; + fDataPtr = new char[size]; if (dataPtr) { memcpy(fDataPtr, dataPtr, fSize); } // TODO: w/ no dataPtr the data is unitialized - this could be tracked } GrGLint getSize() const { return fSize; } - GrGLchar *getDataPtr() { return fDataPtr; } + GrGLvoid *getDataPtr() { return fDataPtr; } GrGLint getUsage() const { return fUsage; } void setUsage(GrGLint usage) { fUsage = usage; } @@ -126,7 +126,7 @@ public: protected: private: - GrGLchar* fDataPtr; + GrGLvoid* fDataPtr; bool fMapped; // is the buffer object mapped via "glMapBuffer"? bool fBound; // is the buffer object bound via "glBindBuffer"? GrGLint fSize; // size in bytes @@ -342,10 +342,10 @@ int GrDebugGL::fNextID = 0; GrDebugGL GrDebugGL::Obj; //////////////////////////////////////////////////////////////////////////////// -GrGLvoid GR_GL_FUNCTION_TYPE debugGLActiveTexture(GrGLenum texture) +GrGLvoid GR_GL_FUNCTION_TYPE debugGLActiveTexture(GrGLenum texture) { - -// GrAlwaysAssert(0 <= texture); + + GrAlwaysAssert(0 <= texture); // GrAlwaysAssert(texture < GrDebugGL::getInstance()->getMaxTextureUnits()); GrDebugGL::getInstance()->setCurTextureUnit(texture); diff --git a/whitespace.txt b/whitespace.txt index 755b560..78c2624 100644 --- a/whitespace.txt +++ b/whitespace.txt @@ -1,5 +1,5 @@ You can modify this file to create no-op changelists. - +