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

Side by Side Diff: chrome/renderer/webplugin_delegate_proxy.h

Issue 4142004: Let every "accelerated IO surface swapped" message have an identifier of the surface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ 5 #ifndef CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_
6 #define CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ 6 #define CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 int32 width, 169 int32 width,
170 int32 height, 170 int32 height,
171 uint64 io_surface_identifier); 171 uint64 io_surface_identifier);
172 void OnAcceleratedSurfaceSetTransportDIB(gfx::PluginWindowHandle window, 172 void OnAcceleratedSurfaceSetTransportDIB(gfx::PluginWindowHandle window,
173 int32 width, 173 int32 width,
174 int32 height, 174 int32 height,
175 TransportDIB::Handle transport_dib); 175 TransportDIB::Handle transport_dib);
176 void OnAcceleratedSurfaceAllocTransportDIB(size_t size, 176 void OnAcceleratedSurfaceAllocTransportDIB(size_t size,
177 TransportDIB::Handle* dib_handle); 177 TransportDIB::Handle* dib_handle);
178 void OnAcceleratedSurfaceFreeTransportDIB(TransportDIB::Id dib_id); 178 void OnAcceleratedSurfaceFreeTransportDIB(TransportDIB::Id dib_id);
179 void OnAcceleratedSurfaceBuffersSwapped(gfx::PluginWindowHandle window); 179 void OnAcceleratedSurfaceBuffersSwapped(gfx::PluginWindowHandle window,
180 uint64 surface_id);
180 #endif 181 #endif
181 182
182 // Draw a graphic indicating a crashed plugin. 183 // Draw a graphic indicating a crashed plugin.
183 void PaintSadPlugin(WebKit::WebCanvas* canvas, const gfx::Rect& rect); 184 void PaintSadPlugin(WebKit::WebCanvas* canvas, const gfx::Rect& rect);
184 185
185 // Returns true if the given rectangle is different in the native drawing 186 // Returns true if the given rectangle is different in the native drawing
186 // context and the current background bitmap. 187 // context and the current background bitmap.
187 bool BackgroundChanged(gfx::NativeDrawingContext context, 188 bool BackgroundChanged(gfx::NativeDrawingContext context,
188 const gfx::Rect& rect); 189 const gfx::Rect& rect);
189 190
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 // This lets us know which portion of the backing store has been painted into. 272 // This lets us know which portion of the backing store has been painted into.
272 gfx::Rect backing_store_painted_; 273 gfx::Rect backing_store_painted_;
273 274
274 // The url of the main frame hosting the plugin. 275 // The url of the main frame hosting the plugin.
275 GURL page_url_; 276 GURL page_url_;
276 277
277 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy); 278 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy);
278 }; 279 };
279 280
280 #endif // CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ 281 #endif // CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698