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

Unified Diff: mojo/skia/ganesh_image_factory.h

Issue 1776643004: Mozart: Specify texture origin explicitly. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-3
Patch Set: Created 4 years, 9 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
« no previous file with comments | « mojo/services/gfx/composition/interfaces/resources.mojom ('k') | mojo/skia/ganesh_image_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/skia/ganesh_image_factory.h
diff --git a/mojo/skia/ganesh_image_factory.h b/mojo/skia/ganesh_image_factory.h
index ae4bfc037b1c5c5585ed396ef640b3d22c8049a4..ddd3630b7ded158d9e5756d8913b5a291917a0bf 100644
--- a/mojo/skia/ganesh_image_factory.h
+++ b/mojo/skia/ganesh_image_factory.h
@@ -12,6 +12,7 @@
#include "mojo/skia/ganesh_context.h"
#include "skia/ext/refptr.h"
#include "third_party/skia/include/core/SkImageGenerator.h"
+#include "third_party/skia/include/gpu/GrTypes.h"
class SkImage;
@@ -26,6 +27,7 @@ namespace skia {
uint32_t texture_id,
uint32_t width,
uint32_t height,
+ GrSurfaceOrigin origin,
const base::Closure& release_callback);
// Generates backing content for SkImages from a texture mailbox.
@@ -39,7 +41,8 @@ class MailboxTextureImageGenerator : public SkImageGenerator {
const GLbyte mailbox_name[GL_MAILBOX_SIZE_CHROMIUM],
GLuint sync_point,
uint32_t width,
- uint32_t height);
+ uint32_t height,
+ GrSurfaceOrigin origin);
~MailboxTextureImageGenerator() override;
GrTexture* onGenerateTexture(GrContext* context,
@@ -48,6 +51,7 @@ class MailboxTextureImageGenerator : public SkImageGenerator {
private:
GLbyte mailbox_name_[GL_MAILBOX_SIZE_CHROMIUM];
GLuint sync_point_;
+ GrSurfaceOrigin origin_;
};
} // namespace skia
« no previous file with comments | « mojo/services/gfx/composition/interfaces/resources.mojom ('k') | mojo/skia/ganesh_image_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698