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

Unified Diff: gpu/ipc/service/image_transport_surface_win.cc

Issue 1998723002: Move code in ui/gl/* from gfx:: to gl:: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 7 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: gpu/ipc/service/image_transport_surface_win.cc
diff --git a/gpu/ipc/service/image_transport_surface_win.cc b/gpu/ipc/service/image_transport_surface_win.cc
index 3bc4faed8d2ebd933d4a19cbe48a06c919995c17..90fe567d7d66d576588ecebc2f064a8f05b40735 100644
--- a/gpu/ipc/service/image_transport_surface_win.cc
+++ b/gpu/ipc/service/image_transport_surface_win.cc
@@ -18,23 +18,23 @@
namespace gpu {
// static
-scoped_refptr<gfx::GLSurface> ImageTransportSurface::CreateNativeSurface(
+scoped_refptr<gl::GLSurface> ImageTransportSurface::CreateNativeSurface(
GpuChannelManager* manager,
GpuCommandBufferStub* stub,
SurfaceHandle surface_handle,
- gfx::GLSurface::Format format) {
+ gl::GLSurface::Format format) {
DCHECK_NE(surface_handle, kNullSurfaceHandle);
- scoped_refptr<gfx::GLSurface> surface;
- if (gfx::GetGLImplementation() == gfx::kGLImplementationEGLGLES2 &&
- gfx::GLSurfaceEGL::IsDirectCompositionSupported()) {
+ scoped_refptr<gl::GLSurface> surface;
+ if (gl::GetGLImplementation() == gl::kGLImplementationEGLGLES2 &&
+ gl::GLSurfaceEGL::IsDirectCompositionSupported()) {
scoped_refptr<ChildWindowSurfaceWin> egl_surface(
new ChildWindowSurfaceWin(manager, surface_handle));
surface = egl_surface;
// TODO(jbauman): Get frame statistics from DirectComposition
std::unique_ptr<gfx::VSyncProvider> vsync_provider(
- new gfx::VSyncProviderWin(surface_handle));
+ new gl::VSyncProviderWin(surface_handle));
if (!egl_surface->Initialize(std::move(vsync_provider)))
return nullptr;
} else {
@@ -43,8 +43,8 @@ scoped_refptr<gfx::GLSurface> ImageTransportSurface::CreateNativeSurface(
return nullptr;
}
- return scoped_refptr<gfx::GLSurface>(new PassThroughImageTransportSurface(
- manager, stub, surface.get()));
+ return scoped_refptr<gl::GLSurface>(
+ new PassThroughImageTransportSurface(manager, stub, surface.get()));
}
} // namespace gpu
« no previous file with comments | « gpu/ipc/service/image_transport_surface_overlay_mac.mm ('k') | gpu/ipc/service/pass_through_image_transport_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698