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

Side by Side Diff: content/browser/browser_plugin/browser_plugin_guest.cc

Issue 11828005: Fixing resize for HW accelerated compositing. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed tests Created 7 years, 11 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
« no previous file with comments | « no previous file | content/common/browser_plugin_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "content/browser/browser_plugin/browser_plugin_guest.h" 5 #include "content/browser/browser_plugin/browser_plugin_guest.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "content/browser/browser_plugin/browser_plugin_embedder.h" 10 #include "content/browser/browser_plugin/browser_plugin_embedder.h"
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 } 595 }
596 596
597 void BrowserPluginGuest::OnUpdateRect( 597 void BrowserPluginGuest::OnUpdateRect(
598 const ViewHostMsg_UpdateRect_Params& params) { 598 const ViewHostMsg_UpdateRect_Params& params) {
599 599
600 BrowserPluginMsg_UpdateRect_Params relay_params; 600 BrowserPluginMsg_UpdateRect_Params relay_params;
601 relay_params.view_size = params.view_size; 601 relay_params.view_size = params.view_size;
602 relay_params.scale_factor = params.scale_factor; 602 relay_params.scale_factor = params.scale_factor;
603 relay_params.is_resize_ack = ViewHostMsg_UpdateRect_Flags::is_resize_ack( 603 relay_params.is_resize_ack = ViewHostMsg_UpdateRect_Flags::is_resize_ack(
604 params.flags); 604 params.flags);
605 relay_params.needs_ack = params.needs_ack;
605 606
606 // HW accelerated case, acknowledge resize only 607 // HW accelerated case, acknowledge resize only
607 if (!params.needs_ack) { 608 if (!params.needs_ack) {
608 relay_params.damage_buffer_sequence_id = 0; 609 relay_params.damage_buffer_sequence_id = 0;
609 SendMessageToEmbedder(new BrowserPluginMsg_UpdateRect( 610 SendMessageToEmbedder(new BrowserPluginMsg_UpdateRect(
610 embedder_routing_id(), 611 embedder_routing_id(),
611 instance_id(), 612 instance_id(),
612 relay_params)); 613 relay_params));
613 return; 614 return;
614 } 615 }
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 relay_params.scroll_delta = params.scroll_delta; 648 relay_params.scroll_delta = params.scroll_delta;
648 relay_params.scroll_rect = params.scroll_rect; 649 relay_params.scroll_rect = params.scroll_rect;
649 relay_params.copy_rects = params.copy_rects; 650 relay_params.copy_rects = params.copy_rects;
650 651
651 SendMessageToEmbedder(new BrowserPluginMsg_UpdateRect(embedder_routing_id(), 652 SendMessageToEmbedder(new BrowserPluginMsg_UpdateRect(embedder_routing_id(),
652 instance_id(), 653 instance_id(),
653 relay_params)); 654 relay_params));
654 } 655 }
655 656
656 } // namespace content 657 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/common/browser_plugin_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698