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

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

Issue 1091323002: Send a message through the ozone channel to recreate buffers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 "content/common/gpu/media/rendering_helper.h" 5 #include "content/common/gpu/media/rendering_helper.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <numeric> 8 #include <numeric>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 void OnWindowStateChanged(ui::PlatformWindowState new_state) override {} 116 void OnWindowStateChanged(ui::PlatformWindowState new_state) override {}
117 117
118 void OnLostCapture() override {}; 118 void OnLostCapture() override {};
119 119
120 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget) override { 120 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget) override {
121 accelerated_widget_ = widget; 121 accelerated_widget_ = widget;
122 }; 122 };
123 123
124 void OnActivationChanged(bool active) override {}; 124 void OnActivationChanged(bool active) override {};
125 125
126 void OnChangedSurface() override {}
127
126 gfx::AcceleratedWidget accelerated_widget() const { 128 gfx::AcceleratedWidget accelerated_widget() const {
127 return accelerated_widget_; 129 return accelerated_widget_;
128 } 130 }
129 131
130 gfx::Size GetSize() { return platform_window_->GetBounds().size(); } 132 gfx::Size GetSize() { return platform_window_->GetBounds().size(); }
131 133
132 ui::PlatformWindow* platform_window() const { return platform_window_.get(); } 134 ui::PlatformWindow* platform_window() const { return platform_window_.get(); }
133 135
134 private: 136 private:
135 scoped_ptr<ui::PlatformWindow> platform_window_; 137 scoped_ptr<ui::PlatformWindow> platform_window_;
(...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after
848 // When the rendering falls behind, drops frames. 850 // When the rendering falls behind, drops frames.
849 while (scheduled_render_time_ < target) { 851 while (scheduled_render_time_ < target) {
850 scheduled_render_time_ += frame_duration_; 852 scheduled_render_time_ += frame_duration_;
851 DropOneFrameForAllVideos(); 853 DropOneFrameForAllVideos();
852 } 854 }
853 855
854 message_loop_->PostDelayedTask( 856 message_loop_->PostDelayedTask(
855 FROM_HERE, render_task_.callback(), target - now); 857 FROM_HERE, render_task_.callback(), target - now);
856 } 858 }
857 } // namespace content 859 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/compositor/software_output_device_ozone_unittest.cc ('k') | ui/aura/window_tree_host_ozone.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698