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

Unified Diff: content/browser/renderer_host/render_widget_host_view_guest.cc

Issue 12463007: Disable partial swaps for webview guest renderer until we can figure out how to do that properly. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 10 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 | « no previous file | content/common/gpu/image_transport_surface_android.cc » ('j') | ui/gfx/native_widget_types.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_guest.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_guest.cc b/content/browser/renderer_host/render_widget_host_view_guest.cc
index 6fa85d92a94115000180f9d91827db71ed47f83d..4464c9b8fc4ec11cb95d0ec5626ce2044228e388 100644
--- a/content/browser/renderer_host/render_widget_host_view_guest.cc
+++ b/content/browser/renderer_host/render_widget_host_view_guest.cc
@@ -63,7 +63,8 @@ gfx::Rect RenderWidgetHostViewGuest::GetBoundsInRootWindow() {
}
gfx::GLSurfaceHandle RenderWidgetHostViewGuest::GetCompositingSurface() {
- return gfx::GLSurfaceHandle(gfx::kNullPluginWindow, gfx::TEXTURE_TRANSPORT);
+ return gfx::GLSurfaceHandle(gfx::kNullPluginWindow,
+ gfx::TEXTURE_TRANSPORT_NO_PARTIAL_SWAP);
}
void RenderWidgetHostViewGuest::Show() {
@@ -121,16 +122,7 @@ void RenderWidgetHostViewGuest::AcceleratedSurfaceBuffersSwapped(
void RenderWidgetHostViewGuest::AcceleratedSurfacePostSubBuffer(
const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params,
int gpu_host_id) {
- DCHECK(enable_compositing_);
- if (enable_compositing_) {
- guest_->SendMessageToEmbedder(
- new BrowserPluginMsg_BuffersSwapped(
- guest_->instance_id(),
- params.surface_size,
- params.mailbox_name,
- params.route_id,
- gpu_host_id));
- }
+ NOTREACHED();
}
void RenderWidgetHostViewGuest::SetBounds(const gfx::Rect& rect) {
« no previous file with comments | « no previous file | content/common/gpu/image_transport_surface_android.cc » ('j') | ui/gfx/native_widget_types.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698