uint8_t* addr = (uint8_t*)mm->pixels();
int width = this->width();
int height = this->height();
- unsigned rowBytes = this->rowBytes();
+ unsigned rowBytes;
SkBitmap dstBM;
for (int i = 0; i < maxLevels; i++) {
void GrTextureAccess::setSwizzle(const char* swizzle) {
fSwizzleMask = 0;
memset(fSwizzle, '\0', 5);
- int i = 0;
for (int i = 0; i < 4 && '\0' != swizzle[i]; ++i) {
fSwizzle[i] = swizzle[i];
switch (swizzle[i]) {
GrPaint paint;
paint.reset();
- GrSamplerState* sampler = paint.textureSampler(kBitmapTextureIdx);
-
GrTexture* texture;
// We assume here that the filter will not attempt to tile the src. Otherwise, this cache lookup
// must be pushed upstack.
return NONHOMOGS[count];
}
-const char* GrGLSLVectorNonhomogCoord(GrSLType type) {
+const char* GrGLSLVectorNonhomogCoords(GrSLType type) {
return GrGLSLVectorNonhomogCoords(GrSLTypeToVecLength(type));
}
return false;
}
- GrGLStencilBuffer* sb = NULL;
-
int stencilFmtCnt = this->glCaps().stencilFormats().count();
for (int i = 0; i < stencilFmtCnt; ++i) {
GL_CALL(BindRenderbuffer(GR_GL_RENDERBUFFER, sbID));
void GrGpuGL::flushBoundTextureAndParams(int stage,
const GrTextureParams& params,
GrGLTexture* nextTexture) {
- GrDrawState* drawState = this->drawState();
// true for now, but maybe not with GrEffect.
GrAssert(NULL != nextTexture);
* found in the LICENSE file.
*/
-#import "SkNSView.h"s
+#import "SkNSView.h"
#include "SkCanvas.h"
#include "SkCGUtils.h"
#include "SkEvent.h"