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

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

Issue 1166463004: Revert of Adding status to swap complete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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.cc ('k') | ui/ozone/platform/drm/gpu/gbm_surface.cc » ('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 #ifndef UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACE_H_ 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACE_H_
6 #define UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACE_H_ 6 #define UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "ui/gfx/geometry/size.h" 10 #include "ui/gfx/geometry/size.h"
(...skipping 21 matching lines...) Expand all
32 bool Initialize(); 32 bool Initialize();
33 33
34 // GbmSurfaceless: 34 // GbmSurfaceless:
35 intptr_t GetNativeWindow() override; 35 intptr_t GetNativeWindow() override;
36 bool ResizeNativeWindow(const gfx::Size& viewport_size) override; 36 bool ResizeNativeWindow(const gfx::Size& viewport_size) override;
37 bool OnSwapBuffers() override; 37 bool OnSwapBuffers() override;
38 bool OnSwapBuffersAsync(const SwapCompletionCallback& callback) override; 38 bool OnSwapBuffersAsync(const SwapCompletionCallback& callback) override;
39 39
40 private: 40 private:
41 void OnSwapBuffersCallback(const SwapCompletionCallback& callback, 41 void OnSwapBuffersCallback(const SwapCompletionCallback& callback,
42 gbm_bo* pending_buffer, 42 gbm_bo* pending_buffer);
43 gfx::SwapResult result);
44 43
45 scoped_refptr<GbmDevice> gbm_; 44 scoped_refptr<GbmDevice> gbm_;
46 45
47 // The native GBM surface. In EGL this represents the EGLNativeWindowType. 46 // The native GBM surface. In EGL this represents the EGLNativeWindowType.
48 gbm_surface* native_surface_; 47 gbm_surface* native_surface_;
49 48
50 // Buffer currently used for scanout. 49 // Buffer currently used for scanout.
51 gbm_bo* current_buffer_; 50 gbm_bo* current_buffer_;
52 51
53 gfx::Size size_; 52 gfx::Size size_;
54 53
55 base::WeakPtrFactory<GbmSurface> weak_factory_; 54 base::WeakPtrFactory<GbmSurface> weak_factory_;
56 55
57 DISALLOW_COPY_AND_ASSIGN(GbmSurface); 56 DISALLOW_COPY_AND_ASSIGN(GbmSurface);
58 }; 57 };
59 58
60 } // namespace ui 59 } // namespace ui
61 60
62 #endif // UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACE_H_ 61 #endif // UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACE_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_window.cc ('k') | ui/ozone/platform/drm/gpu/gbm_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698