| OLD | NEW | 
|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/browser/compositor/software_output_device_x11.h" | 5 #include "content/browser/compositor/software_output_device_x11.h" | 
| 6 | 6 | 
| 7 #include <stddef.h> | 7 #include <stddef.h> | 
| 8 #include <stdint.h> | 8 #include <stdint.h> | 
| 9 #include <string.h> | 9 #include <string.h> | 
| 10 #include <X11/Xlib.h> | 10 #include <X11/Xlib.h> | 
| 11 #include <X11/Xutil.h> | 11 #include <X11/Xutil.h> | 
| 12 | 12 | 
|  | 13 #undef None // Defined by X11/X.h to 0L which collides with other headers | 
|  | 14 | 
| 13 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" | 
| 14 #include "third_party/skia/include/core/SkImageInfo.h" | 16 #include "third_party/skia/include/core/SkImageInfo.h" | 
| 15 #include "ui/base/x/x11_util.h" | 17 #include "ui/base/x/x11_util.h" | 
| 16 #include "ui/base/x/x11_util_internal.h" | 18 #include "ui/base/x/x11_util_internal.h" | 
| 17 #include "ui/compositor/compositor.h" | 19 #include "ui/compositor/compositor.h" | 
| 18 #include "ui/gfx/x/x11_types.h" | 20 #include "ui/gfx/x/x11_types.h" | 
| 19 | 21 | 
| 20 namespace content { | 22 namespace content { | 
| 21 | 23 | 
| 22 SoftwareOutputDeviceX11::SoftwareOutputDeviceX11(ui::Compositor* compositor) | 24 SoftwareOutputDeviceX11::SoftwareOutputDeviceX11(ui::Compositor* compositor) | 
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 119   SkPixmap pixmap; | 121   SkPixmap pixmap; | 
| 120   surface_->peekPixels(&pixmap); | 122   surface_->peekPixels(&pixmap); | 
| 121   gfx::PutARGBImage( | 123   gfx::PutARGBImage( | 
| 122       display_, attributes_.visual, attributes_.depth, compositor_->widget(), | 124       display_, attributes_.visual, attributes_.depth, compositor_->widget(), | 
| 123       gc_, static_cast<const uint8_t*>(pixmap.addr()), | 125       gc_, static_cast<const uint8_t*>(pixmap.addr()), | 
| 124       viewport_pixel_size_.width(), viewport_pixel_size_.height(), rect.x(), | 126       viewport_pixel_size_.width(), viewport_pixel_size_.height(), rect.x(), | 
| 125       rect.y(), rect.x(), rect.y(), rect.width(), rect.height()); | 127       rect.y(), rect.x(), rect.y(), rect.width(), rect.height()); | 
| 126 } | 128 } | 
| 127 | 129 | 
| 128 }  // namespace content | 130 }  // namespace content | 
| OLD | NEW | 
|---|