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

Unified Diff: ui/ozone/platform/dri/gpu/gpu_messages.h

Issue 479713002: [Ozone-GBM] Adding NativeWindowDelegate to IPC window changes to the GPU (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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
Index: ui/ozone/platform/dri/gpu/gpu_messages.h
diff --git a/ui/ozone/platform/dri/gpu/gpu_messages.h b/ui/ozone/platform/dri/gpu/gpu_messages.h
new file mode 100644
index 0000000000000000000000000000000000000000..8fb335e631f3603835573672507e356330e24486
--- /dev/null
+++ b/ui/ozone/platform/dri/gpu/gpu_messages.h
@@ -0,0 +1,35 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Multiply-included message file, hence no include guard here, but see below
+// for a much smaller-than-usual include guard section.
+
+#include "ipc/ipc_message_macros.h"
+#include "ui/gfx/geometry/rect.h"
+#include "ui/gfx/ipc/gfx_param_traits.h"
+#include "ui/gfx/native_widget_types.h"
+#include "ui/ozone/ozone_export.h"
+
+#undef IPC_MESSAGE_EXPORT
+#define IPC_MESSAGE_EXPORT OZONE_EXPORT
+
+#define IPC_MESSAGE_START OzoneGpuMsgStart
dnicoara 2014/08/16 00:34:00 spang@ pointed out that I can't do this in here si
+
+//------------------------------------------------------------------------------
+// GPU Messages
+// These are messages from the browser to the GPU process.
+
+// Explicit creation of a NativeWindowDelegate. We explicitly create the window
+// delegate such that any state change in the window is not lost while the
+// surface is created on the GPU side.
+IPC_MESSAGE_CONTROL1(DriGpuMsg_CreateNativeWindowDelegate,
+ gfx::AcceleratedWidget /* widget */)
+
+IPC_MESSAGE_CONTROL1(DriGpuMsg_DestoryNativeWindowDelegate,
+ gfx::AcceleratedWidget /* widget */)
+
+// Updates the location and size of the widget on the screen.
+IPC_MESSAGE_CONTROL2(DriGpuMsg_NativeWindowBoundsChanged,
+ gfx::AcceleratedWidget /* widget */,
+ gfx::Rect /* bounds */)
« no previous file with comments | « ui/ozone/platform/dri/gpu/gpu_message_generator.cc ('k') | ui/ozone/platform/dri/gpu_platform_support_gbm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698