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

Unified Diff: app/gfx/gl/gl_context_egl.cc

Issue 4815001: Use inner HWND for accelerated rendering on windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 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 side-by-side diff with in-line comments
Download patch
Index: app/gfx/gl/gl_context_egl.cc
===================================================================
--- app/gfx/gl/gl_context_egl.cc (revision 66779)
+++ app/gfx/gl/gl_context_egl.cc (working copy)
@@ -246,6 +246,13 @@
return true;
}
+void NativeViewEGLContext::SetSize(gfx::Size size) {
+ HWND hwnd = static_cast<HWND>(window_);
+ UINT swp_flags = SWP_NOSENDCHANGING | SWP_NOOWNERZORDER | SWP_NOCOPYBITS |
+ SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE | SWP_DEFERERASE;
+ SetWindowPos(hwnd, NULL, 0, 0, size.width(), size.height(), swp_flags);
+}
+
gfx::Size NativeViewEGLContext::GetSize() {
#if defined(OS_WIN)
RECT rect;

Powered by Google App Engine
This is Rietveld 408576698