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

Side by Side Diff: content/browser/compositor/software_output_device_x11.cc

Issue 2867693004: Snapshot of all changes to get jumbo in blink and content.
Patch Set: Exclude certain files from jumbo because of a Windows problem Created 3 years, 3 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
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/browser/compositor/software_output_device_x11.h ('k') | content/browser/devtools/devtools_agent_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698