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

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

Issue 1752813002: Pepper uses DIP, so RWFullscreenPepper should always use SetDeviceScaleFctor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2661
Patch Set: Created 4 years, 9 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 | « content/renderer/render_widget_fullscreen_pepper.h ('k') | no next file » | 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/renderer/render_widget_fullscreen_pepper.h" 5 #include "content/renderer/render_widget_fullscreen_pepper.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 } 377 }
378 378
379 WebWidget* RenderWidgetFullscreenPepper::CreateWebWidget() { 379 WebWidget* RenderWidgetFullscreenPepper::CreateWebWidget() {
380 return new PepperWidget(this); 380 return new PepperWidget(this);
381 } 381 }
382 382
383 GURL RenderWidgetFullscreenPepper::GetURLForGraphicsContext3D() { 383 GURL RenderWidgetFullscreenPepper::GetURLForGraphicsContext3D() {
384 return active_url_; 384 return active_url_;
385 } 385 }
386 386
387 void RenderWidgetFullscreenPepper::SetDeviceScaleFactor( 387 void RenderWidgetFullscreenPepper::OnDeviceScaleFactorChanged() {
388 float device_scale_factor) {
389 RenderWidget::SetDeviceScaleFactor(device_scale_factor);
390 if (compositor_) 388 if (compositor_)
391 compositor_->setDeviceScaleFactor(device_scale_factor); 389 compositor_->setDeviceScaleFactor(device_scale_factor_);
392 } 390 }
393 391
394 } // namespace content 392 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_widget_fullscreen_pepper.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698