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

Side by Side Diff: content/browser/renderer_host/backing_store_gtk.cc

Issue 9600036: Move Render(View|Widget)Host and associated classes to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. Created 8 years, 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/renderer_host/backing_store_gtk.h" 5 #include "content/browser/renderer_host/backing_store_gtk.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>
(...skipping 16 matching lines...) Expand all
27 #include "base/time.h" 27 #include "base/time.h"
28 #include "content/browser/renderer_host/render_process_host_impl.h" 28 #include "content/browser/renderer_host/render_process_host_impl.h"
29 #include "skia/ext/platform_canvas.h" 29 #include "skia/ext/platform_canvas.h"
30 #include "third_party/skia/include/core/SkBitmap.h" 30 #include "third_party/skia/include/core/SkBitmap.h"
31 #include "ui/base/x/x11_util.h" 31 #include "ui/base/x/x11_util.h"
32 #include "ui/base/x/x11_util_internal.h" 32 #include "ui/base/x/x11_util_internal.h"
33 #include "ui/base/gtk/gtk_signal.h" 33 #include "ui/base/gtk/gtk_signal.h"
34 #include "ui/gfx/rect.h" 34 #include "ui/gfx/rect.h"
35 #include "ui/gfx/surface/transport_dib.h" 35 #include "ui/gfx/surface/transport_dib.h"
36 36
37 using content::RenderWidgetHost;
38
37 namespace { 39 namespace {
38 40
39 // Assume that somewhere along the line, someone will do width * height * 4 41 // Assume that somewhere along the line, someone will do width * height * 4
40 // with signed numbers. If the maximum value is 2**31, then 2**31 / 4 = 42 // with signed numbers. If the maximum value is 2**31, then 2**31 / 4 =
41 // 2**29 and floor(sqrt(2**29)) = 23170. 43 // 2**29 and floor(sqrt(2**29)) = 23170.
42 44
43 // Max height and width for layers 45 // Max height and width for layers
44 static const int kMaxVideoLayerSize = 23170; 46 static const int kMaxVideoLayerSize = 23170;
45 47
46 48
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 cairo_set_source(cr, pattern); 655 cairo_set_source(cr, pattern);
654 cairo_pattern_destroy(pattern); 656 cairo_pattern_destroy(pattern);
655 657
656 cairo_identity_matrix(cr); 658 cairo_identity_matrix(cr);
657 659
658 cairo_rectangle(cr, rect.x(), rect.y(), rect.width(), rect.height()); 660 cairo_rectangle(cr, rect.x(), rect.y(), rect.width(), rect.height());
659 cairo_fill(cr); 661 cairo_fill(cr);
660 cairo_destroy(cr); 662 cairo_destroy(cr);
661 } 663 }
662 #endif 664 #endif
OLDNEW
« no previous file with comments | « content/browser/renderer_host/backing_store_gtk.h ('k') | content/browser/renderer_host/backing_store_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698