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

Side by Side Diff: ui/ozone/platform/drm/gpu/drm_thread.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: cosmetic fixes 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 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 #ifndef UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_H_ 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_H_
6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_H_ 6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/threading/thread.h" 10 #include "base/threading/thread.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 gfx::BufferUsage usage, 56 gfx::BufferUsage usage,
57 scoped_refptr<GbmBuffer>* buffer); 57 scoped_refptr<GbmBuffer>* buffer);
58 58
59 void SchedulePageFlip(gfx::AcceleratedWidget widget, 59 void SchedulePageFlip(gfx::AcceleratedWidget widget,
60 const std::vector<OverlayPlane>& planes, 60 const std::vector<OverlayPlane>& planes,
61 const SwapCompletionCallback& callback); 61 const SwapCompletionCallback& callback);
62 void GetVSyncParameters( 62 void GetVSyncParameters(
63 gfx::AcceleratedWidget widget, 63 gfx::AcceleratedWidget widget,
64 const gfx::VSyncProvider::UpdateVSyncCallback& callback); 64 const gfx::VSyncProvider::UpdateVSyncCallback& callback);
65 65
66 void GetOverlayBufferConfigurations(gfx::AcceleratedWidget widget,
67 const OverlayParamCallback& callback);
68
66 void CreateWindow(gfx::AcceleratedWidget widget); 69 void CreateWindow(gfx::AcceleratedWidget widget);
67 void DestroyWindow(gfx::AcceleratedWidget widget); 70 void DestroyWindow(gfx::AcceleratedWidget widget);
68 void SetWindowBounds(gfx::AcceleratedWidget widget, const gfx::Rect& bounds); 71 void SetWindowBounds(gfx::AcceleratedWidget widget, const gfx::Rect& bounds);
69 void SetCursor(gfx::AcceleratedWidget widget, 72 void SetCursor(gfx::AcceleratedWidget widget,
70 const std::vector<SkBitmap>& bitmaps, 73 const std::vector<SkBitmap>& bitmaps,
71 const gfx::Point& location, 74 const gfx::Point& location,
72 int frame_delay_ms); 75 int frame_delay_ms);
73 void MoveCursor(gfx::AcceleratedWidget widget, const gfx::Point& location); 76 void MoveCursor(gfx::AcceleratedWidget widget, const gfx::Point& location);
74 void CheckOverlayCapabilities( 77 void CheckOverlayCapabilities(
75 gfx::AcceleratedWidget widget, 78 gfx::AcceleratedWidget widget,
76 const std::vector<OverlayCheck_Params>& overlays, 79 const std::vector<OverlayCheck_Params>& current_combination,
80 const std::vector<OverlayCheck_Params>& new_combination,
77 const base::Callback<void(gfx::AcceleratedWidget, 81 const base::Callback<void(gfx::AcceleratedWidget,
78 const std::vector<OverlayCheck_Params>&)>& 82 const std::vector<OverlayCheck_Params>&)>&
79 callback); 83 callback);
80 void RefreshNativeDisplays( 84 void RefreshNativeDisplays(
81 const base::Callback<void(const std::vector<DisplaySnapshot_Params>&)>& 85 const base::Callback<void(const std::vector<DisplaySnapshot_Params>&)>&
82 callback); 86 callback);
83 void ConfigureNativeDisplay( 87 void ConfigureNativeDisplay(
84 int64_t id, 88 int64_t id,
85 const DisplayMode_Params& mode, 89 const DisplayMode_Params& mode,
86 const gfx::Point& origin, 90 const gfx::Point& origin,
(...skipping 22 matching lines...) Expand all
109 scoped_ptr<ScanoutBufferGenerator> buffer_generator_; 113 scoped_ptr<ScanoutBufferGenerator> buffer_generator_;
110 scoped_ptr<ScreenManager> screen_manager_; 114 scoped_ptr<ScreenManager> screen_manager_;
111 scoped_ptr<DrmGpuDisplayManager> display_manager_; 115 scoped_ptr<DrmGpuDisplayManager> display_manager_;
112 116
113 DISALLOW_COPY_AND_ASSIGN(DrmThread); 117 DISALLOW_COPY_AND_ASSIGN(DrmThread);
114 }; 118 };
115 119
116 } // namespace ui 120 } // namespace ui
117 121
118 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_H_ 122 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698