aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrGpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/GrGpu.h')
-rw-r--r--src/gpu/GrGpu.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h
index 9b39319f4f..6741aec513 100644
--- a/src/gpu/GrGpu.h
+++ b/src/gpu/GrGpu.h
@@ -195,6 +195,13 @@ public:
}
/**
+ * Same as above but applies to writeTexturePixels
+ */
+ virtual GrPixelConfig preferredWritePixelsConfig(GrPixelConfig config) {
+ return config;
+ }
+
+ /**
* OpenGL's readPixels returns the result bottom-to-top while the skia
* API is top-to-bottom. Thus we have to do a y-axis flip. The obvious
* solution is to have the subclass do the flip using either the CPU or GPU.
@@ -247,6 +254,7 @@ public:
/**
* Updates the pixels in a rectangle of a texture.
+ *
* @param left left edge of the rectangle to write (inclusive)
* @param top top edge of the rectangle to write (inclusive)
* @param width width of rectangle to write in pixels.