Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(809)

Unified Diff: include/gpu/GrSurface.h

Issue 1249543003: Creating functions for uploading a mipmapped texture. (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Storing the max mipmap level in the texture. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: include/gpu/GrSurface.h
diff --git a/include/gpu/GrSurface.h b/include/gpu/GrSurface.h
index 28935009ce8caee78187405c3b50616d7d2e9aed..7c7a8b46ababbad7987512c2bff526583d7a1eac 100644
--- a/include/gpu/GrSurface.h
+++ b/include/gpu/GrSurface.h
@@ -12,7 +12,9 @@
#include "GrTypes.h"
#include "GrGpuResource.h"
#include "SkImageInfo.h"
+#include "SkMipMapLevel.h"
#include "SkRect.h"
+#include "SkTArray.h"
class GrRenderTarget;
class GrSurfacePriv;
@@ -100,14 +102,11 @@ public:
* packed.
* @param pixelOpsFlags See the GrContext::PixelOpsFlags enum.
*
- * @return true if the read succeeded, false if not. The read can fail because of an unsupported
- * pixel config.
+ * @return true if the read succeeded, false if not. The read can fail because of an
+ * unsupported pixel config.
*/
- bool writePixels(int left, int top, int width, int height,
- GrPixelConfig config,
- const void* buffer,
- size_t rowBytes = 0,
- uint32_t pixelOpsFlags = 0);
+ bool writePixels(int left, int top, int width, int height, GrPixelConfig config,
+ const void* buffer, size_t rowBytes = 0, uint32_t pixelOpsFlags = 0);
/**
* After this returns any pending writes to the surface will be issued to the backend 3D API.
« no previous file with comments | « include/core/SkMipMapLevel.h ('k') | include/gpu/GrTexture.h » ('j') | include/gpu/GrTexture.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698