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

Side by Side Diff: media/gpu/rendering_helper.cc

Issue 2926553004: Remove trailing semicolon at the end of a method definition (Closed)
Patch Set: rebase Created 3 years, 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "media/gpu/rendering_helper.h" 5 #include "media/gpu/rendering_helper.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <memory> 10 #include <memory>
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 void OnDamageRect(const gfx::Rect& damaged_region) override {} 125 void OnDamageRect(const gfx::Rect& damaged_region) override {}
126 126
127 void DispatchEvent(ui::Event* event) override {} 127 void DispatchEvent(ui::Event* event) override {}
128 128
129 void OnCloseRequest() override {} 129 void OnCloseRequest() override {}
130 void OnClosed() override {} 130 void OnClosed() override {}
131 131
132 void OnWindowStateChanged(ui::PlatformWindowState new_state) override {} 132 void OnWindowStateChanged(ui::PlatformWindowState new_state) override {}
133 133
134 void OnLostCapture() override{}; 134 void OnLostCapture() override {}
135 135
136 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget, 136 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget,
137 float device_pixel_ratio) override { 137 float device_pixel_ratio) override {
138 accelerated_widget_ = widget; 138 accelerated_widget_ = widget;
139 } 139 }
140 140
141 void OnAcceleratedWidgetDestroyed() override { NOTREACHED(); } 141 void OnAcceleratedWidgetDestroyed() override { NOTREACHED(); }
142 142
143 void OnActivationChanged(bool active) override{}; 143 void OnActivationChanged(bool active) override {}
144 144
145 gfx::AcceleratedWidget accelerated_widget() const { 145 gfx::AcceleratedWidget accelerated_widget() const {
146 return accelerated_widget_; 146 return accelerated_widget_;
147 } 147 }
148 148
149 gfx::Size GetSize() { return platform_window_->GetBounds().size(); } 149 gfx::Size GetSize() { return platform_window_->GetBounds().size(); }
150 150
151 ui::PlatformWindow* platform_window() const { return platform_window_.get(); } 151 ui::PlatformWindow* platform_window() const { return platform_window_.get(); }
152 152
153 private: 153 private:
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after
912 // When the rendering falls behind, drops frames. 912 // When the rendering falls behind, drops frames.
913 while (scheduled_render_time_ < target) { 913 while (scheduled_render_time_ < target) {
914 scheduled_render_time_ += frame_duration_; 914 scheduled_render_time_ += frame_duration_;
915 DropOneFrameForAllVideos(); 915 DropOneFrameForAllVideos();
916 } 916 }
917 917
918 task_runner_->PostDelayedTask(FROM_HERE, render_task_.callback(), 918 task_runner_->PostDelayedTask(FROM_HERE, render_task_.callback(),
919 target - now); 919 target - now);
920 } 920 }
921 } // namespace media 921 } // namespace media
OLDNEW
« no previous file with comments | « media/gpu/ipc/service/gpu_jpeg_decode_accelerator_unittest.cc ('k') | net/dns/mdns_client_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698