| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "gpu/ipc/service/direct_composition_surface_win.h" | 5 #include "gpu/ipc/service/direct_composition_surface_win.h" |
| 6 | 6 |
| 7 #include "base/optional.h" | 7 #include "base/optional.h" |
| 8 #include "gpu/ipc/service/gpu_channel_manager.h" | 8 #include "gpu/ipc/service/gpu_channel_manager.h" |
| 9 #include "gpu/ipc/service/gpu_channel_manager_delegate.h" | 9 #include "gpu/ipc/service/gpu_channel_manager_delegate.h" |
| 10 #include "ui/gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 | 316 |
| 317 EGLClientBuffer buffer = | 317 EGLClientBuffer buffer = |
| 318 reinterpret_cast<EGLClientBuffer>(draw_texture_.get()); | 318 reinterpret_cast<EGLClientBuffer>(draw_texture_.get()); |
| 319 real_surface_ = eglCreatePbufferFromClientBuffer( | 319 real_surface_ = eglCreatePbufferFromClientBuffer( |
| 320 GetDisplay(), EGL_D3D_TEXTURE_ANGLE, buffer, GetConfig(), | 320 GetDisplay(), EGL_D3D_TEXTURE_ANGLE, buffer, GetConfig(), |
| 321 &pbuffer_attribs[0]); | 321 &pbuffer_attribs[0]); |
| 322 | 322 |
| 323 return true; | 323 return true; |
| 324 } | 324 } |
| 325 | 325 |
| 326 scoped_refptr<base::TaskRunner> |
| 327 DirectCompositionSurfaceWin::GetWindowTaskRunnerForTesting() { |
| 328 return child_window_.GetTaskRunnerForTesting(); |
| 329 } |
| 330 |
| 326 DirectCompositionSurfaceWin::Overlay::Overlay(int z_order, | 331 DirectCompositionSurfaceWin::Overlay::Overlay(int z_order, |
| 327 gfx::OverlayTransform transform, | 332 gfx::OverlayTransform transform, |
| 328 scoped_refptr<gl::GLImage> image, | 333 scoped_refptr<gl::GLImage> image, |
| 329 gfx::Rect bounds_rect, | 334 gfx::Rect bounds_rect, |
| 330 gfx::RectF crop_rect) | 335 gfx::RectF crop_rect) |
| 331 : z_order(z_order), | 336 : z_order(z_order), |
| 332 transform(transform), | 337 transform(transform), |
| 333 image(image), | 338 image(image), |
| 334 bounds_rect(bounds_rect), | 339 bounds_rect(bounds_rect), |
| 335 crop_rect(crop_rect) {} | 340 crop_rect(crop_rect) {} |
| 336 | 341 |
| 337 DirectCompositionSurfaceWin::Overlay::Overlay(const Overlay& overlay) = default; | 342 DirectCompositionSurfaceWin::Overlay::Overlay(const Overlay& overlay) = default; |
| 338 | 343 |
| 339 DirectCompositionSurfaceWin::Overlay::~Overlay() {} | 344 DirectCompositionSurfaceWin::Overlay::~Overlay() {} |
| 340 | 345 |
| 341 } // namespace gpu | 346 } // namespace gpu |
| OLD | NEW |