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

Side by Side Diff: content/common/gpu/image_transport_surface_win.cc

Issue 17110007: Delete usage and support for EGL_ANGLE_software_display extension. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/common/gpu/image_transport_surface_linux.cc ('k') | content/gpu/gpu_main.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/common/gpu/image_transport_surface.h" 5 #include "content/common/gpu/image_transport_surface.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 ui::LatencyInfo latency_info_; 72 ui::LatencyInfo latency_info_;
73 73
74 scoped_ptr<ImageTransportHelper> helper_; 74 scoped_ptr<ImageTransportHelper> helper_;
75 75
76 DISALLOW_COPY_AND_ASSIGN(PbufferImageTransportSurface); 76 DISALLOW_COPY_AND_ASSIGN(PbufferImageTransportSurface);
77 }; 77 };
78 78
79 PbufferImageTransportSurface::PbufferImageTransportSurface( 79 PbufferImageTransportSurface::PbufferImageTransportSurface(
80 GpuChannelManager* manager, 80 GpuChannelManager* manager,
81 GpuCommandBufferStub* stub) 81 GpuCommandBufferStub* stub)
82 : GLSurfaceAdapter(new gfx::PbufferGLSurfaceEGL(false, gfx::Size(1, 1))), 82 : GLSurfaceAdapter(new gfx::PbufferGLSurfaceEGL(gfx::Size(1, 1))),
83 backbuffer_suggested_allocation_(true), 83 backbuffer_suggested_allocation_(true),
84 frontbuffer_suggested_allocation_(true), 84 frontbuffer_suggested_allocation_(true),
85 is_swap_buffers_pending_(false), 85 is_swap_buffers_pending_(false),
86 did_unschedule_(false) { 86 did_unschedule_(false) {
87 helper_.reset(new ImageTransportHelper(this, 87 helper_.reset(new ImageTransportHelper(this,
88 manager, 88 manager,
89 stub, 89 stub,
90 gfx::kNullPluginWindow)); 90 gfx::kNullPluginWindow));
91 } 91 }
92 92
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 const char* extensions = eglQueryString( 263 const char* extensions = eglQueryString(
264 eglGetDisplay(EGL_DEFAULT_DISPLAY), EGL_EXTENSIONS); 264 eglGetDisplay(EGL_DEFAULT_DISPLAY), EGL_EXTENSIONS);
265 if (strstr(extensions, "EGL_ANGLE_query_surface_pointer") && 265 if (strstr(extensions, "EGL_ANGLE_query_surface_pointer") &&
266 strstr(extensions, "EGL_ANGLE_surface_d3d_texture_2d_share_handle")) { 266 strstr(extensions, "EGL_ANGLE_surface_d3d_texture_2d_share_handle")) {
267 return scoped_refptr<gfx::GLSurface>( 267 return scoped_refptr<gfx::GLSurface>(
268 new PbufferImageTransportSurface(manager, stub)); 268 new PbufferImageTransportSurface(manager, stub));
269 } 269 }
270 } 270 }
271 271
272 scoped_refptr<gfx::GLSurface> surface = 272 scoped_refptr<gfx::GLSurface> surface =
273 gfx::GLSurface::CreateViewGLSurface(false, handle.handle); 273 gfx::GLSurface::CreateViewGLSurface(handle.handle);
274 if (!surface) 274 if (!surface)
275 return surface; 275 return surface;
276 return scoped_refptr<gfx::GLSurface>(new PassThroughImageTransportSurface( 276 return scoped_refptr<gfx::GLSurface>(new PassThroughImageTransportSurface(
277 manager, stub, surface.get(), handle.is_transport())); 277 manager, stub, surface.get(), handle.is_transport()));
278 } 278 }
279 279
280 } // namespace content 280 } // namespace content
OLDNEW
« no previous file with comments | « content/common/gpu/image_transport_surface_linux.cc ('k') | content/gpu/gpu_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698