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

Unified Diff: chrome/common/gpu_param_traits.h

Issue 6673003: Move GPU messages to content. I've also switched the IPC structs to use the ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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 | « chrome/common/gpu_messages_unittest.cc ('k') | chrome/common/gpu_video_common.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/gpu_param_traits.h
===================================================================
--- chrome/common/gpu_param_traits.h (revision 77652)
+++ chrome/common/gpu_param_traits.h (working copy)
@@ -1,101 +0,0 @@
-// Copyright (c) 2010 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.
-
-#ifndef CHROME_COMMON_GPU_PARAM_TRAITS_H_
-#define CHROME_COMMON_GPU_PARAM_TRAITS_H_
-#pragma once
-
-#include "base/basictypes.h"
-#include "base/process.h"
-#include "chrome/common/common_param_traits.h"
-#include "chrome/common/dx_diag_node.h"
-#include "chrome/common/gpu_create_command_buffer_config.h"
-#include "chrome/common/gpu_info.h"
-#include "gpu/ipc/gpu_command_buffer_traits.h"
-#include "gpu/command_buffer/common/command_buffer.h"
-#include "ui/gfx/native_widget_types.h"
-#include "ui/gfx/rect.h"
-#include "ui/gfx/size.h"
-
-#if defined(OS_MACOSX)
-// Parameters for the GpuHostMsg_AcceleratedSurfaceSetIOSurface
-// message, which has too many parameters to be sent with the
-// predefined IPC macros.
-struct GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params {
- int32 renderer_id;
- int32 render_view_id;
- gfx::PluginWindowHandle window;
- int32 width;
- int32 height;
- uint64 identifier;
-
- GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params();
-};
-
-struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params {
- int32 renderer_id;
- int32 render_view_id;
- gfx::PluginWindowHandle window;
- uint64 surface_id;
- int32 route_id;
- uint64 swap_buffers_count;
-
- GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params();
-};
-#endif
-
-namespace IPC {
-#if defined(OS_MACOSX)
-template <>
-struct ParamTraits<GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params> {
- typedef GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params param_type;
- static void Write(Message* m, const param_type& p);
- static bool Read(const Message* m, void** iter, param_type* p);
- static void Log(const param_type& p, std::string* l);
-};
-
-template <>
-struct ParamTraits<GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params> {
- typedef GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params param_type;
- static void Write(Message* m, const param_type& p);
- static bool Read(const Message* m, void** iter, param_type* p);
- static void Log(const param_type& p, std::string* l);
-};
-#endif
-
-template <>
-struct ParamTraits<GPUInfo> {
- typedef GPUInfo param_type;
- static void Write(Message* m, const param_type& p);
- static bool Read(const Message* m, void** iter, param_type* p);
- static void Log(const param_type& p, std::string* l);
-};
-
-template <>
-struct ParamTraits<GPUInfo::Level> {
- typedef GPUInfo::Level param_type;
- static void Write(Message* m, const param_type& p);
- static bool Read(const Message* m, void** iter, param_type* p);
- static void Log(const param_type& p, std::string* l);
-};
-
-template <>
-struct ParamTraits<DxDiagNode> {
- typedef DxDiagNode param_type;
- static void Write(Message* m, const param_type& p);
- static bool Read(const Message* m, void** iter, param_type* p);
- static void Log(const param_type& p, std::string* l);
-};
-
-template <>
-struct ParamTraits<GPUCreateCommandBufferConfig> {
- typedef GPUCreateCommandBufferConfig param_type;
- static void Write(Message* m, const param_type& p);
- static bool Read(const Message* m, void** iter, param_type* p);
- static void Log(const param_type& p, std::string* l);
-};
-
-} // namespace IPC
-
-#endif // CHROME_COMMON_GPU_PARAM_TRAITS_H_
« no previous file with comments | « chrome/common/gpu_messages_unittest.cc ('k') | chrome/common/gpu_video_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698