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

Unified Diff: content/browser/gpu/gpu_internals_ui.cc

Issue 2838753002: x11: Use opaque window for dnd without composite. (Closed)
Patch Set: Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/base/x/x11_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/gpu_internals_ui.cc
diff --git a/content/browser/gpu/gpu_internals_ui.cc b/content/browser/gpu/gpu_internals_ui.cc
index 3fb2e536cd83a46f2703025cb1910e933ee788a5..45f2f6d2745f5092a74d04c79b80a0f0bdbf2171 100644
--- a/content/browser/gpu/gpu_internals_ui.cc
+++ b/content/browser/gpu/gpu_internals_ui.cc
@@ -218,16 +218,9 @@ base::DictionaryValue* GpuInfoAsDictionaryValue() {
const char kGDMSession[] = "GDMSESSION";
if (env->GetVar(kGDMSession, &value))
basic_info->Append(NewDescriptionValuePair(kGDMSession, value));
- const char* const kAtomsToCache[] = {
- "_NET_WM_CM_S0",
- NULL
- };
- ui::X11AtomCache atom_cache(gfx::GetXDisplay(), kAtomsToCache);
- std::string compositing_manager = XGetSelectionOwner(
- gfx::GetXDisplay(),
- atom_cache.GetAtom("_NET_WM_CM_S0")) != None ? "Yes" : "No";
- basic_info->Append(
- NewDescriptionValuePair("Compositing manager", compositing_manager));
+ basic_info->Append(NewDescriptionValuePair(
+ "Compositing manager",
+ ui::IsCompositingManagerPresent() ? "Yes" : "No"));
}
#endif
std::string direct_rendering = gpu_info.direct_rendering ? "Yes" : "No";
« no previous file with comments | « no previous file | ui/base/x/x11_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698