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

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

Issue 8523019: Devirtualize CHROMEG_CALLBACK (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 1 month 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 104
105 // Data to delete. 105 // Data to delete.
106 Picture picture; 106 Picture picture;
107 Pixmap pixmap; 107 Pixmap pixmap;
108 108
109 // Callback once everything else is done. 109 // Callback once everything else is done.
110 base::Closure closure; 110 base::Closure closure;
111 }; 111 };
112 112
113 XSyncHandler(); 113 XSyncHandler();
114 virtual ~XSyncHandler(); 114 ~XSyncHandler();
115 115
116 // An event filter notified about all XEvents. We then filter out XSync 116 // An event filter notified about all XEvents. We then filter out XSync
117 // events that are on counters that we made. 117 // events that are on counters that we made.
118 CHROMEG_CALLBACK_1(XSyncHandler, GdkFilterReturn, OnEvent, GdkXEvent*, 118 CHROMEG_CALLBACK_1(XSyncHandler, GdkFilterReturn, OnEvent, GdkXEvent*,
119 GdkEvent*); 119 GdkEvent*);
120 120
121 // Whether we successfully loaded XSyncExtension. 121 // Whether we successfully loaded XSyncExtension.
122 bool loaded_extension_; 122 bool loaded_extension_;
123 123
124 // The event ids returned to us by XSyncQueryExtension(). 124 // The event ids returned to us by XSyncQueryExtension().
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 cairo_set_source(cr, pattern); 653 cairo_set_source(cr, pattern);
654 cairo_pattern_destroy(pattern); 654 cairo_pattern_destroy(pattern);
655 655
656 cairo_identity_matrix(cr); 656 cairo_identity_matrix(cr);
657 657
658 cairo_rectangle(cr, rect.x(), rect.y(), rect.width(), rect.height()); 658 cairo_rectangle(cr, rect.x(), rect.y(), rect.width(), rect.height());
659 cairo_fill(cr); 659 cairo_fill(cr);
660 cairo_destroy(cr); 660 cairo_destroy(cr);
661 } 661 }
662 #endif 662 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698