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

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

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: Created 5 years, 1 month 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 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 #ifndef UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_H_ 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_H_
6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_H_ 6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/timer/timer.h" 10 #include "base/timer/timer.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 std::vector<OverlayCheck_Params> TestPageFlip( 89 std::vector<OverlayCheck_Params> TestPageFlip(
90 const std::vector<OverlayCheck_Params>& planes, 90 const std::vector<OverlayCheck_Params>& planes,
91 ScanoutBufferGenerator* buffer_generator); 91 ScanoutBufferGenerator* buffer_generator);
92 92
93 // Returns the last buffer associated with this window. 93 // Returns the last buffer associated with this window.
94 const OverlayPlane* GetLastModesetBuffer(); 94 const OverlayPlane* GetLastModesetBuffer();
95 95
96 void GetVSyncParameters( 96 void GetVSyncParameters(
97 const gfx::VSyncProvider::UpdateVSyncCallback& callback) const; 97 const gfx::VSyncProvider::UpdateVSyncCallback& callback) const;
98 98
99 // Returns optimal buffer configuration which can be supported by the display
100 // on which this window is shown.
101 OverlayBufferConfiguration GetOverlayBufferConfiguration(
102 const gfx::Rect& display_bounds,
103 const gfx::RectF& crop_rect,
104 const gfx::Size& current_buffer_size,
105 uint32_t z_order,
106 bool video_content);
107
99 private: 108 private:
100 // Draw the last set cursor & update the cursor plane. 109 // Draw the last set cursor & update the cursor plane.
101 void ResetCursor(bool bitmap_only); 110 void ResetCursor(bool bitmap_only);
102 111
103 // Draw next frame in an animated cursor. 112 // Draw next frame in an animated cursor.
104 void OnCursorAnimationTimeout(); 113 void OnCursorAnimationTimeout();
105 114
106 // When |controller_| changes this is called to reallocate the cursor buffers 115 // When |controller_| changes this is called to reallocate the cursor buffers
107 // since the allocation DRM device may have changed. 116 // since the allocation DRM device may have changed.
108 void UpdateCursorBuffers(); 117 void UpdateCursorBuffers();
(...skipping 23 matching lines...) Expand all
132 OverlayPlaneList last_submitted_planes_; 141 OverlayPlaneList last_submitted_planes_;
133 142
134 bool force_buffer_reallocation_ = false; 143 bool force_buffer_reallocation_ = false;
135 144
136 DISALLOW_COPY_AND_ASSIGN(DrmWindow); 145 DISALLOW_COPY_AND_ASSIGN(DrmWindow);
137 }; 146 };
138 147
139 } // namespace ui 148 } // namespace ui
140 149
141 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_H_ 150 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698