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

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

Issue 2448543002: Remove dead paint flush tracking code. (Closed)
Patch Set: rebase Created 4 years, 1 month 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 (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 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 return true; 341 return true;
342 342
343 return RenderWidgetFullscreen::OnMessageReceived(msg); 343 return RenderWidgetFullscreen::OnMessageReceived(msg);
344 } 344 }
345 345
346 void RenderWidgetFullscreenPepper::DidInitiatePaint() { 346 void RenderWidgetFullscreenPepper::DidInitiatePaint() {
347 if (plugin_) 347 if (plugin_)
348 plugin_->ViewInitiatedPaint(); 348 plugin_->ViewInitiatedPaint();
349 } 349 }
350 350
351 void RenderWidgetFullscreenPepper::DidFlushPaint() {
352 }
353
354 void RenderWidgetFullscreenPepper::Close() { 351 void RenderWidgetFullscreenPepper::Close() {
355 // If the fullscreen window is closed (e.g. user pressed escape), reset to 352 // If the fullscreen window is closed (e.g. user pressed escape), reset to
356 // normal mode. 353 // normal mode.
357 if (plugin_) 354 if (plugin_)
358 plugin_->FlashSetFullscreen(false, false); 355 plugin_->FlashSetFullscreen(false, false);
359 356
360 // Call Close on the base class to destroy the WebWidget instance. 357 // Call Close on the base class to destroy the WebWidget instance.
361 RenderWidget::Close(); 358 RenderWidget::Close();
362 } 359 }
363 360
(...skipping 10 matching lines...) Expand all
374 GURL RenderWidgetFullscreenPepper::GetURLForGraphicsContext3D() { 371 GURL RenderWidgetFullscreenPepper::GetURLForGraphicsContext3D() {
375 return active_url_; 372 return active_url_;
376 } 373 }
377 374
378 void RenderWidgetFullscreenPepper::OnDeviceScaleFactorChanged() { 375 void RenderWidgetFullscreenPepper::OnDeviceScaleFactorChanged() {
379 if (compositor_) 376 if (compositor_)
380 compositor_->setDeviceScaleFactor(device_scale_factor_); 377 compositor_->setDeviceScaleFactor(device_scale_factor_);
381 } 378 }
382 379
383 } // namespace content 380 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_widget_fullscreen_pepper.h ('k') | content/renderer/render_widget_owner_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698