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

Side by Side Diff: chrome/browser/renderer_host/backing_store_x.cc

Issue 6312156: Change includes of gfx/* to ui/gfx/* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/browser/renderer_host/backing_store_x.h" 5 #include "chrome/browser/renderer_host/backing_store_x.h"
6 6
7 #include <cairo-xlib.h> 7 #include <cairo-xlib.h>
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 #include <stdlib.h> 9 #include <stdlib.h>
10 #include <sys/ipc.h> 10 #include <sys/ipc.h>
11 #include <sys/shm.h> 11 #include <sys/shm.h>
12 12
13 #if defined(OS_OPENBSD) || defined(OS_FREEBSD) 13 #if defined(OS_OPENBSD) || defined(OS_FREEBSD)
14 #include <sys/endian.h> 14 #include <sys/endian.h>
15 #endif 15 #endif
16 16
17 #include <algorithm> 17 #include <algorithm>
18 #include <utility> 18 #include <utility>
19 #include <limits> 19 #include <limits>
20 20
21 #include "app/surface/transport_dib.h" 21 #include "app/surface/transport_dib.h"
22 #include "base/compiler_specific.h" 22 #include "base/compiler_specific.h"
23 #include "base/logging.h" 23 #include "base/logging.h"
24 #include "base/metrics/histogram.h" 24 #include "base/metrics/histogram.h"
25 #include "base/time.h" 25 #include "base/time.h"
26 #include "chrome/browser/renderer_host/render_process_host.h" 26 #include "chrome/browser/renderer_host/render_process_host.h"
27 #include "gfx/rect.h"
28 #include "skia/ext/platform_canvas.h" 27 #include "skia/ext/platform_canvas.h"
29 #include "third_party/skia/include/core/SkBitmap.h" 28 #include "third_party/skia/include/core/SkBitmap.h"
30 #include "ui/base/x/x11_util.h" 29 #include "ui/base/x/x11_util.h"
31 #include "ui/base/x/x11_util_internal.h" 30 #include "ui/base/x/x11_util_internal.h"
31 #include "ui/gfx/rect.h"
32 32
33 // Assume that somewhere along the line, someone will do width * height * 4 33 // Assume that somewhere along the line, someone will do width * height * 4
34 // with signed numbers. If the maximum value is 2**31, then 2**31 / 4 = 34 // with signed numbers. If the maximum value is 2**31, then 2**31 / 4 =
35 // 2**29 and floor(sqrt(2**29)) = 23170. 35 // 2**29 and floor(sqrt(2**29)) = 23170.
36 36
37 // Max height and width for layers 37 // Max height and width for layers
38 static const int kMaxVideoLayerSize = 23170; 38 static const int kMaxVideoLayerSize = 23170;
39 39
40 40
41 // X Backing Stores: 41 // X Backing Stores:
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 cairo_set_source(cr, pattern); 468 cairo_set_source(cr, pattern);
469 cairo_pattern_destroy(pattern); 469 cairo_pattern_destroy(pattern);
470 470
471 cairo_identity_matrix(cr); 471 cairo_identity_matrix(cr);
472 472
473 cairo_rectangle(cr, rect.x(), rect.y(), rect.width(), rect.height()); 473 cairo_rectangle(cr, rect.x(), rect.y(), rect.width(), rect.height());
474 cairo_fill(cr); 474 cairo_fill(cr);
475 cairo_destroy(cr); 475 cairo_destroy(cr);
476 } 476 }
477 #endif 477 #endif
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/backing_store_win.cc ('k') | chrome/browser/renderer_host/gtk_im_context_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698