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

Side by Side Diff: services/ui/surfaces/display_output_surface.cc

Issue 2776923003: cc: Partial draw without partial swap support. (Closed)
Patch Set: avoid BufferQueue::RecreateBuffer changes Created 3 years, 8 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 #include "services/ui/surfaces/display_output_surface.h" 5 #include "services/ui/surfaces/display_output_surface.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 bool DisplayOutputSurface::SurfaceIsSuspendForRecycle() const { 111 bool DisplayOutputSurface::SurfaceIsSuspendForRecycle() const {
112 return false; 112 return false;
113 } 113 }
114 114
115 bool DisplayOutputSurface::HasExternalStencilTest() const { 115 bool DisplayOutputSurface::HasExternalStencilTest() const {
116 return false; 116 return false;
117 } 117 }
118 118
119 void DisplayOutputSurface::ApplyExternalStencil() {} 119 void DisplayOutputSurface::ApplyExternalStencil() {}
120 120
121 bool DisplayOutputSurface::CanPartialDraw(const gfx::Rect& damage) {
122 return false;
123 }
124
121 void DisplayOutputSurface::DidReceiveSwapBuffersAck(gfx::SwapResult result) { 125 void DisplayOutputSurface::DidReceiveSwapBuffersAck(gfx::SwapResult result) {
122 client_->DidReceiveSwapBuffersAck(); 126 client_->DidReceiveSwapBuffersAck();
123 } 127 }
124 128
125 void DisplayOutputSurface::OnGpuSwapBuffersCompleted( 129 void DisplayOutputSurface::OnGpuSwapBuffersCompleted(
126 const std::vector<ui::LatencyInfo>& latency_info, 130 const std::vector<ui::LatencyInfo>& latency_info,
127 gfx::SwapResult result, 131 gfx::SwapResult result,
128 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac) { 132 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac) {
129 DidReceiveSwapBuffersAck(result); 133 DidReceiveSwapBuffersAck(result);
130 } 134 }
131 135
132 void DisplayOutputSurface::OnVSyncParametersUpdated(base::TimeTicks timebase, 136 void DisplayOutputSurface::OnVSyncParametersUpdated(base::TimeTicks timebase,
133 base::TimeDelta interval) { 137 base::TimeDelta interval) {
134 // TODO(brianderson): We should not be receiving 0 intervals. 138 // TODO(brianderson): We should not be receiving 0 intervals.
135 synthetic_begin_frame_source_->OnUpdateVSyncParameters( 139 synthetic_begin_frame_source_->OnUpdateVSyncParameters(
136 timebase, 140 timebase,
137 interval.is_zero() ? cc::BeginFrameArgs::DefaultInterval() : interval); 141 interval.is_zero() ? cc::BeginFrameArgs::DefaultInterval() : interval);
138 } 142 }
139 143
140 } // namespace ui 144 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/surfaces/display_output_surface.h ('k') | ui/compositor/test/in_process_context_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698