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

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

Issue 1311043016: Switch DRM platform to using a separate thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mv-drm-calls-on-thread2
Patch Set: update & fix clang Created 5 years, 2 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
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_window.h ('k') | ui/ozone/platform/drm/gpu/drm_window_proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_window.h" 5 #include "ui/ozone/platform/drm/gpu/drm_window.h"
6 6
7 #include <drm_fourcc.h> 7 #include <drm_fourcc.h>
8 8
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "base/trace_event/trace_event.h" 10 #include "base/trace_event/trace_event.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 } 75 }
76 76
77 gfx::AcceleratedWidget DrmWindow::GetAcceleratedWidget() { 77 gfx::AcceleratedWidget DrmWindow::GetAcceleratedWidget() {
78 return widget_; 78 return widget_;
79 } 79 }
80 80
81 HardwareDisplayController* DrmWindow::GetController() { 81 HardwareDisplayController* DrmWindow::GetController() {
82 return controller_; 82 return controller_;
83 } 83 }
84 84
85 void DrmWindow::OnBoundsChanged(const gfx::Rect& bounds) { 85 void DrmWindow::SetBounds(const gfx::Rect& bounds) {
86 TRACE_EVENT2("drm", "DrmWindow::OnBoundsChanged", "widget", widget_, "bounds", 86 TRACE_EVENT2("drm", "DrmWindow::SetBounds", "widget", widget_, "bounds",
87 bounds.ToString()); 87 bounds.ToString());
88 bounds_ = bounds; 88 bounds_ = bounds;
89 if (bounds_.size() != bounds.size()) 89 if (bounds_.size() != bounds.size())
90 last_submitted_planes_.clear(); 90 last_submitted_planes_.clear();
91 91
92 screen_manager_->UpdateControllerToWindowMapping(); 92 screen_manager_->UpdateControllerToWindowMapping();
93 } 93 }
94 94
95 void DrmWindow::SetCursor(const std::vector<SkBitmap>& bitmaps, 95 void DrmWindow::SetCursor(const std::vector<SkBitmap>& bitmaps,
96 const gfx::Point& location, 96 const gfx::Point& location,
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 if (!cursor_buffers_[i]->Initialize( 307 if (!cursor_buffers_[i]->Initialize(
308 info, false /* should_register_framebuffer */)) { 308 info, false /* should_register_framebuffer */)) {
309 LOG(FATAL) << "Failed to initialize cursor buffer"; 309 LOG(FATAL) << "Failed to initialize cursor buffer";
310 return; 310 return;
311 } 311 }
312 } 312 }
313 } 313 }
314 } 314 }
315 315
316 } // namespace ui 316 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_window.h ('k') | ui/ozone/platform/drm/gpu/drm_window_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698