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

Unified Diff: ui/gl/gl_image_io_surface.mm

Issue 2104393003: Revert of Remove unsafe cast from ImageTransportSurfaceOverlayMac::ScheduleCALayer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « ui/gl/gl_image_io_surface.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_image_io_surface.mm
diff --git a/ui/gl/gl_image_io_surface.mm b/ui/gl/gl_image_io_surface.mm
index 3b244e3e94bbfe9f521e6b8949c7cca16170c631..4d7b64f32dca242ae52fd5216e03cf61f081ddba 100644
--- a/ui/gl/gl_image_io_surface.mm
+++ b/ui/gl/gl_image_io_surface.mm
@@ -376,22 +376,10 @@
return cv_pixel_buffer_;
}
-GLImage::Type GLImageIOSurface::GetType() const {
- return Type::IOSURFACE;
-}
-
// static
unsigned GLImageIOSurface::GetInternalFormatForTesting(
gfx::BufferFormat format) {
DCHECK(ValidFormat(format));
return TextureFormat(format);
}
-
-// static
-GLImageIOSurface* GLImageIOSurface::FromGLImage(GLImage* image) {
- if (!image || image->GetType() != Type::IOSURFACE)
- return nullptr;
- return static_cast<GLImageIOSurface*>(image);
-}
-
} // namespace gl
« no previous file with comments | « ui/gl/gl_image_io_surface.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698