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

Side by Side Diff: content/browser/compositor/gpu_browser_compositor_output_surface.h

Issue 1084173004: Adding status to swap complete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 5 years, 7 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 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 CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ 5 #ifndef CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
6 #define CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ 6 #define CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
7 7
8 #include "base/cancelable_callback.h" 8 #include "base/cancelable_callback.h"
9 #include "content/browser/compositor/browser_compositor_output_surface.h" 9 #include "content/browser/compositor/browser_compositor_output_surface.h"
10 #include "ui/gfx/swap_result.h"
10 11
11 namespace ui { 12 namespace ui {
12 class CompositorVSyncManager; 13 class CompositorVSyncManager;
13 } 14 }
14 15
15 namespace content { 16 namespace content {
16 class CommandBufferProxyImpl; 17 class CommandBufferProxyImpl;
17 class BrowserCompositorOverlayCandidateValidator; 18 class BrowserCompositorOverlayCandidateValidator;
18 19
19 // Adapts a WebGraphicsContext3DCommandBufferImpl into a 20 // Adapts a WebGraphicsContext3DCommandBufferImpl into a
(...skipping 27 matching lines...) Expand all
47 SHOULD_NOT_SHOW_FRAMES_SUSPENDED, 48 SHOULD_NOT_SHOW_FRAMES_SUSPENDED,
48 // The compositor has been un-suspended, but has not yet issued a swap 49 // The compositor has been un-suspended, but has not yet issued a swap
49 // since being un-suspended, so any frames that come from the GPU process 50 // since being un-suspended, so any frames that come from the GPU process
50 // are for pre-suspend content and should not be displayed. 51 // are for pre-suspend content and should not be displayed.
51 SHOULD_NOT_SHOW_FRAMES_NO_SWAP_AFTER_SUSPENDED, 52 SHOULD_NOT_SHOW_FRAMES_NO_SWAP_AFTER_SUSPENDED,
52 }; 53 };
53 ShouldShowFramesState should_show_frames_state_; 54 ShouldShowFramesState should_show_frames_state_;
54 #endif 55 #endif
55 56
56 CommandBufferProxyImpl* GetCommandBufferProxy(); 57 CommandBufferProxyImpl* GetCommandBufferProxy();
57 void OnSwapBuffersCompleted(const std::vector<ui::LatencyInfo>& latency_info); 58 void OnSwapBuffersCompleted(
59 const std::vector<ui::LatencyInfo>& latency_info,
60 gfx::SwapResult result);
58 61
59 base::CancelableCallback<void(const std::vector<ui::LatencyInfo>&)> 62 base::CancelableCallback<void(const std::vector<ui::LatencyInfo>&,
63 gfx::SwapResult)>
60 swap_buffers_completion_callback_; 64 swap_buffers_completion_callback_;
61 base::CancelableCallback<void(base::TimeTicks timebase, 65 base::CancelableCallback<void(base::TimeTicks timebase,
62 base::TimeDelta interval)> 66 base::TimeDelta interval)>
63 update_vsync_parameters_callback_; 67 update_vsync_parameters_callback_;
64 68
65 DISALLOW_COPY_AND_ASSIGN(GpuBrowserCompositorOutputSurface); 69 DISALLOW_COPY_AND_ASSIGN(GpuBrowserCompositorOutputSurface);
66 }; 70 };
67 71
68 } // namespace content 72 } // namespace content
69 73
70 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ 74 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/compositor/gpu_browser_compositor_output_surface.cc » ('j') | ui/gfx/swap_result.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698