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

Side by Side Diff: content/browser/media/capture/desktop_capture_device_aura.cc

Issue 859423002: Explicitly specify the ui::Compositor to DelegatedFrameHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use compositor Created 5 years, 11 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/browser/media/capture/desktop_capture_device_aura.h" 5 #include "content/browser/media/capture/desktop_capture_device_aura.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "base/timer/timer.h" 9 #include "base/timer/timer.h"
10 #include "cc/output/copy_output_request.h" 10 #include "cc/output/copy_output_request.h"
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 void OnWindowRemovingFromRootWindow(aura::Window* window, 112 void OnWindowRemovingFromRootWindow(aura::Window* window,
113 aura::Window* new_root) override; 113 aura::Window* new_root) override;
114 114
115 // Implements ui::CompositorObserver. 115 // Implements ui::CompositorObserver.
116 void OnCompositingDidCommit(ui::Compositor* compositor) override {} 116 void OnCompositingDidCommit(ui::Compositor* compositor) override {}
117 void OnCompositingStarted(ui::Compositor* compositor, 117 void OnCompositingStarted(ui::Compositor* compositor,
118 base::TimeTicks start_time) override {} 118 base::TimeTicks start_time) override {}
119 void OnCompositingEnded(ui::Compositor* compositor) override; 119 void OnCompositingEnded(ui::Compositor* compositor) override;
120 void OnCompositingAborted(ui::Compositor* compositor) override {} 120 void OnCompositingAborted(ui::Compositor* compositor) override {}
121 void OnCompositingLockStateChanged(ui::Compositor* compositor) override {} 121 void OnCompositingLockStateChanged(ui::Compositor* compositor) override {}
122 void OnCompositingShuttingDown(ui::Compositor* compositor) override {}
122 123
123 private: 124 private:
124 // Captures a frame. 125 // Captures a frame.
125 // |dirty| is false for timer polls and true for compositor updates. 126 // |dirty| is false for timer polls and true for compositor updates.
126 void Capture(bool dirty); 127 void Capture(bool dirty);
127 128
128 // Update capture size. Must be called on the UI thread. 129 // Update capture size. Must be called on the UI thread.
129 void UpdateCaptureSize(); 130 void UpdateCaptureSize();
130 131
131 // Response callback for cc::Layer::RequestCopyOfOutput(). 132 // Response callback for cc::Layer::RequestCopyOfOutput().
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 scoped_ptr<Client> client) { 535 scoped_ptr<Client> client) {
535 DVLOG(1) << "Allocating " << params.requested_format.frame_size.ToString(); 536 DVLOG(1) << "Allocating " << params.requested_format.frame_size.ToString();
536 core_->AllocateAndStart(params, client.Pass()); 537 core_->AllocateAndStart(params, client.Pass());
537 } 538 }
538 539
539 void DesktopCaptureDeviceAura::StopAndDeAllocate() { 540 void DesktopCaptureDeviceAura::StopAndDeAllocate() {
540 core_->StopAndDeAllocate(); 541 core_->StopAndDeAllocate();
541 } 542 }
542 543
543 } // namespace content 544 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/compositor/delegated_frame_host.cc ('k') | content/browser/renderer_host/render_widget_host_view_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698