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

Unified Diff: remoting/client/plugin/chromoting_instance.cc

Issue 7992011: Move us fully from gfx:: over to skia types for consistency. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleaned up copyrights Created 9 years, 3 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
Index: remoting/client/plugin/chromoting_instance.cc
diff --git a/remoting/client/plugin/chromoting_instance.cc b/remoting/client/plugin/chromoting_instance.cc
index 7ab92c0cbc60d8977fbc81f7c7ddd0e9f8258296..81e81b80289d959bed622481b6d165190f3f808f 100644
--- a/remoting/client/plugin/chromoting_instance.cc
+++ b/remoting/client/plugin/chromoting_instance.cc
@@ -207,7 +207,7 @@ void ChromotingInstance::DidChangeView(const pp::Rect& position,
const pp::Rect& clip) {
DCHECK(plugin_message_loop_->BelongsToCurrentThread());
- view_->SetPluginSize(gfx::Size(position.width(), position.height()));
+ view_->SetPluginSize(SkISize::Make(position.width(), position.height()));
// TODO(wez): Pass the dimensions of the plugin to the RectangleDecoder
// and let it generate the necessary refresh events.
@@ -221,7 +221,7 @@ void ChromotingInstance::DidChangeView(const pp::Rect& position,
// Notify the RectangleDecoder of the new clip rect.
rectangle_decoder_->UpdateClipRect(
- gfx::Rect(clip.x(), clip.y(), clip.width(), clip.height()));
+ SkIRect::MakeXYWH(clip.x(), clip.y(), clip.width(), clip.height()));
}
bool ChromotingInstance::HandleInputEvent(const pp::InputEvent& event) {

Powered by Google App Engine
This is Rietveld 408576698