Home
last modified time | relevance | path

Searched refs:display_ (Results 1 – 25 of 60) sorted by relevance

123

/external/chromium_org/media/cast/test/
Dlinux_output_window.cc25 if (display_ && window_) { in ~LinuxOutputWindow()
26 XUnmapWindow(display_, window_); in ~LinuxOutputWindow()
27 XDestroyWindow(display_, window_); in ~LinuxOutputWindow()
28 XSync(display_, false); in ~LinuxOutputWindow()
30 XFreeGC(display_, gc_); in ~LinuxOutputWindow()
31 XCloseDisplay(display_); in ~LinuxOutputWindow()
40 display_ = XOpenDisplay(NULL); in CreateWindow()
41 if (display_ == NULL) { in CreateWindow()
47 int screen = DefaultScreen(display_); in CreateWindow()
52 if (XMatchVisualInfo(display_, screen, 24, TrueColor, &visual_info) == 0) { in CreateWindow()
[all …]
/external/chromium_org/third_party/libjingle/source/talk/base/
Dlinuxwindowpicker.cc102 : display_(display), original_error_handler_(NULL) { in XErrorSuppressor()
119 XFlush(display_); in SuppressX11Errors()
120 XSync(display_, False); in SuppressX11Errors()
125 XFlush(display_); in UnsuppressX11Errors()
126 XSync(display_, False); in UnsuppressX11Errors()
135 Display* display_; member in talk_base::XErrorSuppressor
146 : display_(NULL), in XWindowEnumerator()
152 if (display_ != NULL) { in ~XWindowEnumerator()
153 XCloseDisplay(display_); in ~XWindowEnumerator()
158 if (display_ != NULL) { in Init()
[all …]
/external/chromium_org/ui/aura/test/
Dtest_screen.cc35 root_window_ = new RootWindow(RootWindow::CreateParams(display_.bounds())); in CreateRootWindowForPrimaryDisplay()
42 gfx::Rect bounds_in_pixel(display_.GetSizeInPixel()); in SetDeviceScaleFactor()
43 display_.SetScaleAndBounds(device_scale_factor, bounds_in_pixel); in SetDeviceScaleFactor()
48 display_.set_rotation(rotation); in SetDisplayRotation()
55 gfx::Rect bounds_in_pixel(display_.GetSizeInPixel()); in SetUIScale()
58 display_.SetScaleAndBounds(display_.device_scale_factor(), new_bounds); in SetUIScale()
64 float one_pixel = 1.0f / display_.device_scale_factor(); in GetRotationTransform()
65 switch (display_.rotation()) { in GetRotationTransform()
69 rotate.Translate(display_.bounds().height() - one_pixel, 0); in GetRotationTransform()
73 rotate.Translate(0, display_.bounds().width() - one_pixel); in GetRotationTransform()
[all …]
/external/chromium_org/content/browser/renderer_host/
Dbacking_store_gtk.cc251 display_(gfx::GetXDisplay()), in BackingStoreGtk()
252 shared_memory_support_(ui::QuerySharedMemorySupport(display_)), in BackingStoreGtk()
253 use_render_(ui::QueryRenderSupport(display_)), in BackingStoreGtk()
263 pixmap_ = XCreatePixmap(display_, root_window_, in BackingStoreGtk()
268 display_, pixmap_, in BackingStoreGtk()
269 ui::GetRenderVisualFormat(display_, in BackingStoreGtk()
275 pixmap_bpp_ = gfx::BitsPerPixelForPixmapDepth(display_, depth); in BackingStoreGtk()
278 pixmap_gc_ = XCreateGC(display_, pixmap_, 0, NULL); in BackingStoreGtk()
284 display_(NULL), in BackingStoreGtk()
298 if (!display_) in ~BackingStoreGtk()
[all …]
/external/chromium_org/gpu/tools/compositor_model_bench/
Dcompositor_model_bench.cc66 display_(NULL), in Simulator()
75 glXMakeCurrent(display_, 0, NULL); in ~Simulator()
76 glXDestroyContext(display_, gl_context_); in ~Simulator()
79 XDestroyWindow(display_, window_); in ~Simulator()
80 XCloseDisplay(display_); in ~Simulator()
131 while (XPending(display_)) { in ProcessEvents()
133 XNextEvent(display_, &e); in ProcessEvents()
156 display_ = XOpenDisplay(NULL); in InitX11()
157 if (!display_) { in InitX11()
163 int screen = DefaultScreen(display_); in InitX11()
[all …]
/external/chromium_org/media/tools/player_x11/
Dx11_video_renderer.cc72 : display_(display), in X11VideoRenderer()
83 XRenderFreePicture(display_, picture_); in ~X11VideoRenderer()
98 image_ = CreateImage(display_, coded_width, coded_height); in Paint()
143 unsigned long pixmap = XCreatePixmap(display_, window_, in Paint()
146 GC gc = XCreateGC(display_, pixmap, 0, NULL); in Paint()
147 XPutImage(display_, pixmap, gc, &image, in Paint()
152 XFreeGC(display_, gc); in Paint()
156 display_, pixmap, GetRenderARGB32Format(display_), 0, NULL); in Paint()
159 XRenderComposite(display_, PictOpSrc, picture, 0, in Paint()
163 XRenderFreePicture(display_, picture); in Paint()
[all …]
Dgl_video_renderer.cc104 : display_(display), in GlVideoRenderer()
110 glXMakeCurrent(display_, 0, NULL); in ~GlVideoRenderer()
111 glXDestroyContext(display_, gl_context_); in ~GlVideoRenderer()
126 glXMakeCurrent(display_, window_, gl_context_); in Paint()
138 glXSwapBuffers(display_, window_); in Paint()
146 XResizeWindow(display_, window_, visible_rect.width(), visible_rect.height()); in Initialize()
148 gl_context_ = InitGLContext(display_, window_); in Initialize()
248 glXMakeCurrent(display_, 0, NULL); in Initialize()
/external/chromium_org/chromeos/display/
Dreal_output_configurator_delegate.cc57 : display_(base::MessagePumpX11::GetDefaultXDisplay()), in RealOutputConfiguratorDelegate()
58 window_(DefaultRootWindow(display_)), in RealOutputConfiguratorDelegate()
67 XRRQueryExtension(display_, event_base, &error_base_ignored); in InitXRandRExtension()
77 XGrabServer(display_); in GrabServer()
78 screen_ = XRRGetScreenResources(display_, window_); in GrabServer()
86 XUngrabServer(display_); in UngrabServer()
90 XSync(display_, 0); in SyncWithServer()
100 Colormap colormap = DefaultColormap(display_, 0); in SetBackgroundColor()
106 XAllocColor(display_, colormap, &color); in SetBackgroundColor()
108 XChangeWindowAttributes(display_, window_, CWBackPixel, &swa); in SetBackgroundColor()
[all …]
/external/chromium_org/remoting/host/
Ddesktop_resizer_linux.cc150 Display* display_; member in remoting::DesktopResizerLinux
160 : display_(XOpenDisplay(NULL)), in DesktopResizerLinux()
161 screen_(DefaultScreen(display_)), in DesktopResizerLinux()
162 root_(RootWindow(display_, screen_)), in DesktopResizerLinux()
165 XRRSelectInput (display_, root_, RRScreenChangeNotifyMask); in DesktopResizerLinux()
169 XCloseDisplay(display_); in ~DesktopResizerLinux()
188 while (XEventsQueued(display_, QueuedAlready)) { in GetCurrentResolution()
190 XNextEvent(display_, &event); in GetCurrentResolution()
196 DisplayWidth(display_, DefaultScreen(display_)), in GetCurrentResolution()
197 DisplayHeight(display_, DefaultScreen(display_))), in GetCurrentResolution()
[all …]
Dclipboard_x11.cc48 Display* display_; member in remoting::ClipboardX11
57 : display_(NULL) { in ClipboardX11()
67 display_ = XOpenDisplay(NULL); in Start()
68 if (!display_) { in Start()
74 x_server_clipboard_.Init(display_, in Start()
79 ConnectionNumber(display_), in Start()
96 if (display_) { in Stop()
97 XCloseDisplay(display_); in Stop()
98 display_ = NULL; in Stop()
121 DCHECK(display_); in PumpXEvents()
[all …]
Dinput_injector_linux.cc107 Display* display_; member in remoting::__anon5b2137a60111::InputInjectorLinux::Core
166 display_(XOpenDisplay(NULL)), in Core()
172 CHECK(display_); in Init()
177 root_window_ = RootWindow(display_, DefaultScreen(display_)); in Init()
186 if (!XTestQueryExtension(display_, &test_event_base_, &test_error_base_, in Init()
232 XTestFakeKeyEvent(display_, keycode, False, CurrentTime); in InjectKeyEvent()
252 XTestFakeKeyEvent(display_, keycode, event.pressed(), CurrentTime); in InjectKeyEvent()
253 XFlush(display_); in InjectKeyEvent()
267 if (!XGetKeyboardControl(display_, &state)) { in IsAutoRepeatEnabled()
277 XChangeKeyboardControl(display_, KBAutoRepeatMode, &control); in SetAutoRepeatEnabled()
[all …]
Dlocal_input_monitor_linux.cc92 Display* display_; member in remoting::__anon1226237a0111::LocalInputMonitorLinux::Core
128 display_(NULL), in Core()
153 DCHECK(!display_); in ~Core()
162 DCHECK(!display_); in StartOnInputThread()
173 display_ = XOpenDisplay(NULL); in StartOnInputThread()
175 if (!display_ || !x_record_display_) { in StartOnInputThread()
181 if (!XQueryExtension(display_, "RECORD", &xr_opcode, &xr_event, &xr_error)) { in StartOnInputThread()
240 XRecordDisableContext(display_, x_record_context_); in StopOnInputThread()
241 XFlush(display_); in StopOnInputThread()
262 if (display_) { in StopOnInputThread()
[all …]
/external/chromium_org/ui/gl/
Dgl_image_glx.cc49 : display_(base::MessagePumpForUI::GetDefaultXDisplay()), in GLImageGLX()
66 if (!XGetWindowAttributes(display_, window_, &attributes)) { in Initialize()
75 XGetVisualInfo(display_, in Initialize()
99 glXChooseFBConfig(display_, in Initialize()
100 DefaultScreen(display_), in Initialize()
113 pixmap_ = XCompositeNameWindowPixmap(display_, window_); in Initialize()
123 display_, pixmap_, &root, &x, &y, &width, &height, &bw, &depth)) { in Initialize()
134 display_, in Initialize()
149 glXDestroyGLXPixmap(display_, glx_pixmap_); in Destroy()
153 XFreePixmap(display_, pixmap_); in Destroy()
[all …]
Dgl_context_glx.cc39 display_(NULL) { in GLContextGLX()
43 return display_; in display()
48 display_ = static_cast<XDisplay*>(compatible_surface->GetDisplay()); in Initialize()
63 display_, in Initialize()
76 display_, in Initialize()
94 << (glXIsDirect(display_, in Initialize()
104 glXDestroyContext(display_, in Destroy()
117 display_, in MakeCurrent()
151 if (!glXMakeContextCurrent(display_, 0, 0, 0)) in ReleaseCurrent()
186 display_, in SetSwapInterval()
Dgl_context_egl.cc30 display_(NULL), in GLContextEGL()
51 display_ = compatible_surface->GetDisplay(); in Initialize()
66 display_, in Initialize()
82 if (!eglDestroyContext(display_, context_)) { in Destroy()
105 if (!eglMakeCurrent(display_, in MakeCurrent()
143 eglMakeCurrent(display_, in ReleaseCurrent()
176 if (!eglSwapInterval(display_, interval)) { in SetSwapInterval()
183 const char* extensions = eglQueryString(display_, in GetExtensions()
Dgl_fence.cc91 display_ = eglGetCurrentDisplay(); in EGLFenceSync()
92 sync_ = eglCreateSyncKHR(display_, EGL_SYNC_FENCE_KHR, NULL); in EGLFenceSync()
99 eglGetSyncAttribKHR(display_, sync_, EGL_SYNC_STATUS_KHR, &value); in HasCompleted()
107 eglClientWaitSyncKHR(display_, sync_, flags, time); in ClientWait()
112 eglWaitSyncKHR(display_, sync_, flags); in ServerWait()
118 eglDestroySyncKHR(display_, sync_); in ~EGLFenceSync()
122 EGLDisplay display_; member in __anon0b40cccb0111::EGLFenceSync
/external/chromium_org/remoting/host/linux/
Dx_server_clipboard.cc18 : display_(NULL), in XServerClipboard()
35 display_ = display; in Init()
47 if (!XFixesQueryExtension(display_, &xfixes_event_base_, in Init()
53 clipboard_window_ = XCreateSimpleWindow(display_, in Init()
54 DefaultRootWindow(display_), in Init()
71 if (XInternAtoms(display_, const_cast<char**>(kAtomNames), kNumAtomNames, in Init()
84 XFixesSelectSelectionInput(display_, clipboard_window_, clipboard_atom_, in Init()
90 DCHECK(display_); in SetClipboard()
178 XGetWindowProperty(display_, clipboard_window_, large_selection_property_, in OnPropertyNotify()
199 XGetWindowProperty(display_, clipboard_window_, in OnSelectionNotify()
[all …]
Dx_server_clipboard_unittest.cc22 ClipboardTestClient() : display_(NULL) {} in ClipboardTestClient()
26 display_ = display; in Init()
46 while (XPending(display_)) { in PumpXEvents()
48 XNextEvent(display_, &event); in PumpXEvents()
56 Display* display() const { return display_; } in display()
61 Display* display_; member in remoting::__anon2ea253c50111::ClipboardTestClient
Dx11_util.cc48 : display_(display) { in ScopedXGrabServer()
49 XGrabServer(display_); in ScopedXGrabServer()
53 XUngrabServer(display_); in ~ScopedXGrabServer()
54 XFlush(display_); in ~ScopedXGrabServer()
/external/chromium_org/chrome/browser/ui/app_list/
Dapp_list_positioner.cc16 : display_(display), in AppListPositioner()
21 gfx::Rect work_area = display_.work_area(); in WorkAreaSubtract()
23 display_.set_work_area(work_area); in WorkAreaSubtract()
30 gfx::Rect work_area = display_.work_area(); in WorkAreaInset()
32 display_.set_work_area(work_area); in WorkAreaInset()
37 const gfx::Rect& screen_rect = display_.bounds(); in GetAnchorPointForScreenCorner()
61 const gfx::Rect& screen_rect = display_.bounds(); in GetAnchorPointForShelfCorner()
62 const gfx::Rect& work_area = display_.work_area(); in GetAnchorPointForShelfCorner()
86 const gfx::Rect& work_area = display_.work_area(); in GetAnchorPointForShelfCenter()
114 const gfx::Rect& work_area = display_.work_area(); in GetAnchorPointForShelfCursor()
[all …]
/external/chromium_org/content/browser/aura/
Dsoftware_output_device_x11.cc19 display_(gfx::GetXDisplay()), in SoftwareOutputDeviceX11()
25 gc_ = XCreateGC(display_, compositor_->widget(), 0, NULL); in SoftwareOutputDeviceX11()
31 XFreeGC(display_, gc_); in ~SoftwareOutputDeviceX11()
57 image_ = XCreateImage(display_, CopyFromParent, in Resize()
58 DefaultDepth(display_, DefaultScreen(display_)), in Resize()
81 XPutImage(display_, compositor_->widget(), gc_, image_, in EndPaint()
/external/chromium_org/chrome/browser/ui/ash/
Devent_rewriter_unittest.cc69 : display_(gfx::GetXDisplay()), in EventRewriterTest()
70 keycode_a_(XKeysymToKeycode(display_, XK_a)), in EventRewriterTest()
71 keycode_alt_l_(XKeysymToKeycode(display_, XK_Alt_L)), in EventRewriterTest()
72 keycode_alt_r_(XKeysymToKeycode(display_, XK_Alt_R)), in EventRewriterTest()
73 keycode_b_(XKeysymToKeycode(display_, XK_B)), in EventRewriterTest()
74 keycode_caps_lock_(XKeysymToKeycode(display_, XK_Caps_Lock)), in EventRewriterTest()
75 keycode_control_l_(XKeysymToKeycode(display_, XK_Control_L)), in EventRewriterTest()
76 keycode_control_r_(XKeysymToKeycode(display_, XK_Control_R)), in EventRewriterTest()
77 keycode_meta_l_(XKeysymToKeycode(display_, XK_Meta_L)), in EventRewriterTest()
78 keycode_meta_r_(XKeysymToKeycode(display_, XK_Meta_R)), in EventRewriterTest()
[all …]
/external/chromium_org/tools/xdisplaycheck/
Dxdisplaycheck.cc39 XScopedDisplay() : display_(NULL) {} in XScopedDisplay()
41 if (display_) XCloseDisplay(display_); in ~XScopedDisplay()
44 void set(Display* display) { display_ = display; } in set()
45 Display* display() { return display_; } in display()
48 Display* display_; member in XScopedDisplay
/external/chromium_org/chrome/browser/ui/views/app_list/linux/
Dapp_list_linux_unittest.cc51 display_.set_bounds(gfx::Rect(0, 0, kScreenWidth, kScreenHeight)); in SetUp()
52 display_.set_work_area( in SetUp()
60 display_.set_work_area(gfx::Rect(x, y, width, height)); in SetWorkArea()
69 display_.set_work_area(gfx::Rect(kShelfSize, in PlaceShelf()
75 display_.set_work_area(gfx::Rect(0, in PlaceShelf()
81 display_.set_work_area( in PlaceShelf()
88 display_.set_work_area( in PlaceShelf()
107 display_, in DoFindAnchorPoint()
113 gfx::Display display_; member in AppListLinuxUnitTest
/external/chromium_org/chrome/browser/chromeos/
Dkeyboard_driven_event_rewriter_unittest.cc22 : display_(gfx::GetXDisplay()), in KeyboardDrivenEventRewriterTest()
23 keycode_a_(XKeysymToKeycode(display_, XK_a)), in KeyboardDrivenEventRewriterTest()
24 keycode_up_(XKeysymToKeycode(display_, XK_Up)), in KeyboardDrivenEventRewriterTest()
25 keycode_down_(XKeysymToKeycode(display_, XK_Down)), in KeyboardDrivenEventRewriterTest()
26 keycode_left_(XKeysymToKeycode(display_, XK_Left)), in KeyboardDrivenEventRewriterTest()
27 keycode_right_(XKeysymToKeycode(display_, XK_Right)), in KeyboardDrivenEventRewriterTest()
28 keycode_return_(XKeysymToKeycode(display_, XK_Return)), in KeyboardDrivenEventRewriterTest()
29 keycode_f6_(XKeysymToKeycode(display_, XK_F6)) { in KeyboardDrivenEventRewriterTest()
60 XDisplay* display_; member in chromeos::KeyboardDrivenEventRewriterTest

123