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

Side by Side Diff: content/common/gpu/image_transport_surface.h

Issue 10662005: Use IPC::Sender and IPC::Listener in content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_ 5 #ifndef CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_
6 #define CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_ 6 #define CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_
7 #pragma once 7 #pragma once
8 8
9 #if defined(ENABLE_GPU) 9 #if defined(ENABLE_GPU)
10 10
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // Used by certain implements of PostSubBuffer to determine 79 // Used by certain implements of PostSubBuffer to determine
80 // how much needs to be copied between frames. 80 // how much needs to be copied between frames.
81 void GetRegionsToCopy(const gfx::Rect& previous_damage_rect, 81 void GetRegionsToCopy(const gfx::Rect& previous_damage_rect,
82 const gfx::Rect& new_damage_rect, 82 const gfx::Rect& new_damage_rect,
83 std::vector<gfx::Rect>* regions); 83 std::vector<gfx::Rect>* regions);
84 84
85 private: 85 private:
86 DISALLOW_COPY_AND_ASSIGN(ImageTransportSurface); 86 DISALLOW_COPY_AND_ASSIGN(ImageTransportSurface);
87 }; 87 };
88 88
89 class ImageTransportHelper : public IPC::Channel::Listener { 89 class ImageTransportHelper : public IPC::Listener {
90 public: 90 public:
91 // Takes weak pointers to objects that outlive the helper. 91 // Takes weak pointers to objects that outlive the helper.
92 ImageTransportHelper(ImageTransportSurface* surface, 92 ImageTransportHelper(ImageTransportSurface* surface,
93 GpuChannelManager* manager, 93 GpuChannelManager* manager,
94 GpuCommandBufferStub* stub, 94 GpuCommandBufferStub* stub,
95 gfx::PluginWindowHandle handle); 95 gfx::PluginWindowHandle handle);
96 virtual ~ImageTransportHelper(); 96 virtual ~ImageTransportHelper();
97 97
98 bool Initialize(); 98 bool Initialize();
99 void Destroy(); 99 void Destroy();
100 100
101 // IPC::Channel::Listener implementation: 101 // IPC::Listener implementation:
102 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 102 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
103 103
104 // Helper send functions. Caller fills in the surface specific params 104 // Helper send functions. Caller fills in the surface specific params
105 // like size and surface id. The helper fills in the rest. 105 // like size and surface id. The helper fills in the rest.
106 void SendAcceleratedSurfaceNew( 106 void SendAcceleratedSurfaceNew(
107 GpuHostMsg_AcceleratedSurfaceNew_Params params); 107 GpuHostMsg_AcceleratedSurfaceNew_Params params);
108 void SendAcceleratedSurfaceBuffersSwapped( 108 void SendAcceleratedSurfaceBuffersSwapped(
109 GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params params); 109 GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params params);
110 void SendAcceleratedSurfacePostSubBuffer( 110 void SendAcceleratedSurfacePostSubBuffer(
111 GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params params); 111 GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params params);
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 gfx::Size new_size_; 191 gfx::Size new_size_;
192 bool transport_; 192 bool transport_;
193 bool did_set_swap_interval_; 193 bool did_set_swap_interval_;
194 194
195 DISALLOW_COPY_AND_ASSIGN(PassThroughImageTransportSurface); 195 DISALLOW_COPY_AND_ASSIGN(PassThroughImageTransportSurface);
196 }; 196 };
197 197
198 #endif // defined(ENABLE_GPU) 198 #endif // defined(ENABLE_GPU)
199 199
200 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_ 200 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_command_buffer_stub.h ('k') | content/common/gpu/media/gpu_video_decode_accelerator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698