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

Side by Side Diff: content/renderer/browser_plugin/browser_plugin.cc

Issue 2610723002: Unify SurfaceInfo (Closed)
Patch Set: Cleanup offscreen canvas Created 3 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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/renderer/browser_plugin/browser_plugin.h" 5 #include "content/renderer/browser_plugin/browser_plugin.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 int browser_plugin_instance_id, 122 int browser_plugin_instance_id,
123 const cc::SurfaceId& surface_id, 123 const cc::SurfaceId& surface_id,
124 const gfx::Size& frame_size, 124 const gfx::Size& frame_size,
125 float scale_factor, 125 float scale_factor,
126 const cc::SurfaceSequence& sequence) { 126 const cc::SurfaceSequence& sequence) {
127 if (!attached()) 127 if (!attached())
128 return; 128 return;
129 129
130 EnableCompositing(true); 130 EnableCompositing(true);
131 DCHECK(compositing_helper_.get()); 131 DCHECK(compositing_helper_.get());
132 compositing_helper_->OnSetSurface(surface_id, frame_size, scale_factor, 132 compositing_helper_->OnSetSurface(
133 sequence); 133 cc::SurfaceInfo(surface_id, scale_factor, frame_size), sequence);
134 } 134 }
135 135
136 void BrowserPlugin::SendSatisfySequence(const cc::SurfaceSequence& sequence) { 136 void BrowserPlugin::SendSatisfySequence(const cc::SurfaceSequence& sequence) {
137 BrowserPluginManager::Get()->Send(new BrowserPluginHostMsg_SatisfySequence( 137 BrowserPluginManager::Get()->Send(new BrowserPluginHostMsg_SatisfySequence(
138 render_frame_routing_id_, browser_plugin_instance_id_, sequence)); 138 render_frame_routing_id_, browser_plugin_instance_id_, sequence));
139 } 139 }
140 140
141 void BrowserPlugin::UpdateDOMAttribute(const std::string& attribute_name, 141 void BrowserPlugin::UpdateDOMAttribute(const std::string& attribute_name,
142 const base::string16& attribute_value) { 142 const base::string16& attribute_value) {
143 if (!container()) 143 if (!container())
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 610
611 bool BrowserPlugin::HandleMouseLockedInputEvent( 611 bool BrowserPlugin::HandleMouseLockedInputEvent(
612 const blink::WebMouseEvent& event) { 612 const blink::WebMouseEvent& event) {
613 BrowserPluginManager::Get()->Send( 613 BrowserPluginManager::Get()->Send(
614 new BrowserPluginHostMsg_HandleInputEvent(browser_plugin_instance_id_, 614 new BrowserPluginHostMsg_HandleInputEvent(browser_plugin_instance_id_,
615 &event)); 615 &event));
616 return true; 616 return true;
617 } 617 }
618 618
619 } // namespace content 619 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698