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

Side by Side Diff: content/browser/compositor/software_browser_compositor_output_surface.cc

Issue 2403373002: cc: Clean up OutputSurfaceClient. (Closed)
Patch Set: osclient: rebase Created 4 years, 2 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 "content/browser/compositor/software_browser_compositor_output_surface. h" 5 #include "content/browser/compositor/software_browser_compositor_output_surface. h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 weak_factory_.GetWeakPtr())); 78 weak_factory_.GetWeakPtr()));
79 } 79 }
80 80
81 task_runner_->PostTask( 81 task_runner_->PostTask(
82 FROM_HERE, 82 FROM_HERE,
83 base::Bind(&SoftwareBrowserCompositorOutputSurface::SwapBuffersCallback, 83 base::Bind(&SoftwareBrowserCompositorOutputSurface::SwapBuffersCallback,
84 weak_factory_.GetWeakPtr())); 84 weak_factory_.GetWeakPtr()));
85 } 85 }
86 86
87 void SoftwareBrowserCompositorOutputSurface::SwapBuffersCallback() { 87 void SoftwareBrowserCompositorOutputSurface::SwapBuffersCallback() {
88 client_->DidSwapBuffersComplete(); 88 client_->DidReceiveSwapBuffersAck();
89 } 89 }
90 90
91 bool SoftwareBrowserCompositorOutputSurface::IsDisplayedAsOverlayPlane() const { 91 bool SoftwareBrowserCompositorOutputSurface::IsDisplayedAsOverlayPlane() const {
92 return false; 92 return false;
93 } 93 }
94 94
95 unsigned SoftwareBrowserCompositorOutputSurface::GetOverlayTextureId() const { 95 unsigned SoftwareBrowserCompositorOutputSurface::GetOverlayTextureId() const {
96 return 0; 96 return 0;
97 } 97 }
98 98
99 bool SoftwareBrowserCompositorOutputSurface::SurfaceIsSuspendForRecycle() 99 bool SoftwareBrowserCompositorOutputSurface::SurfaceIsSuspendForRecycle()
100 const { 100 const {
101 return false; 101 return false;
102 } 102 }
103 103
104 GLenum 104 GLenum
105 SoftwareBrowserCompositorOutputSurface::GetFramebufferCopyTextureFormat() { 105 SoftwareBrowserCompositorOutputSurface::GetFramebufferCopyTextureFormat() {
106 // Not used for software surfaces. 106 // Not used for software surfaces.
107 NOTREACHED(); 107 NOTREACHED();
108 return 0; 108 return 0;
109 } 109 }
110 110
111 #if defined(OS_MACOSX) 111 #if defined(OS_MACOSX)
112 void SoftwareBrowserCompositorOutputSurface::SetSurfaceSuspendedForRecycle( 112 void SoftwareBrowserCompositorOutputSurface::SetSurfaceSuspendedForRecycle(
113 bool suspended) { 113 bool suspended) {
114 } 114 }
115 #endif 115 #endif
116 116
117 } // namespace content 117 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698