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

Side by Side Diff: ui/ozone/platform/drm/gpu/drm_thread.cc

Issue 1426993003: Ozone: Dont hardcode format to YUV when using Overlay Composition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove obsolete code Created 4 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "ui/ozone/platform/drm/gpu/drm_thread.h" 5 #include "ui/ozone/platform/drm/gpu/drm_thread.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 static_cast<GbmDevice*>(device_manager_->GetDrmDevice(widget).get()); 104 static_cast<GbmDevice*>(device_manager_->GetDrmDevice(widget).get());
105 DCHECK(gbm); 105 DCHECK(gbm);
106 *buffer = GbmBuffer::CreateBuffer(gbm, format, size, usage); 106 *buffer = GbmBuffer::CreateBuffer(gbm, format, size, usage);
107 } 107 }
108 108
109 void DrmThread::SchedulePageFlip(gfx::AcceleratedWidget widget, 109 void DrmThread::SchedulePageFlip(gfx::AcceleratedWidget widget,
110 const std::vector<OverlayPlane>& planes, 110 const std::vector<OverlayPlane>& planes,
111 const SwapCompletionCallback& callback) { 111 const SwapCompletionCallback& callback) {
112 DrmWindow* window = screen_manager_->GetWindow(widget); 112 DrmWindow* window = screen_manager_->GetWindow(widget);
113 if (window) 113 if (window)
114 window->SchedulePageFlip(planes, callback); 114 window->SchedulePageFlip(planes, callback, buffer_generator_.get());
dnicoara 2016/01/13 17:26:51 Looking over the change and I'm thinking that the
kalyank 2016/01/13 19:52:33 Done.
115 else 115 else
116 callback.Run(gfx::SwapResult::SWAP_ACK); 116 callback.Run(gfx::SwapResult::SWAP_ACK);
117 } 117 }
118 118
119 void DrmThread::GetVSyncParameters( 119 void DrmThread::GetVSyncParameters(
120 gfx::AcceleratedWidget widget, 120 gfx::AcceleratedWidget widget,
121 const gfx::VSyncProvider::UpdateVSyncCallback& callback) { 121 const gfx::VSyncProvider::UpdateVSyncCallback& callback) {
122 DrmWindow* window = screen_manager_->GetWindow(widget); 122 DrmWindow* window = screen_manager_->GetWindow(widget);
123 // No need to call the callback if there isn't a window since the vsync 123 // No need to call the callback if there isn't a window since the vsync
124 // provider doesn't require the callback to be called if there isn't a vsync 124 // provider doesn't require the callback to be called if there isn't a vsync
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 const base::Callback<void(int64_t, bool)>& callback) { 220 const base::Callback<void(int64_t, bool)>& callback) {
221 callback.Run(display_id, display_manager_->SetHDCPState(display_id, state)); 221 callback.Run(display_id, display_manager_->SetHDCPState(display_id, state));
222 } 222 }
223 223
224 void DrmThread::SetGammaRamp(int64_t id, 224 void DrmThread::SetGammaRamp(int64_t id,
225 const std::vector<GammaRampRGBEntry>& lut) { 225 const std::vector<GammaRampRGBEntry>& lut) {
226 display_manager_->SetGammaRamp(id, lut); 226 display_manager_->SetGammaRamp(id, lut);
227 } 227 }
228 228
229 } // namespace ui 229 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698