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

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

Issue 2646243002: Use IDCompositionSurface to implement DirectCompositionSurfaceWin. (Closed)
Patch Set: rebase Created 3 years, 9 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 void SoftwareBrowserCompositorOutputSurface::DiscardBackbuffer() { 48 void SoftwareBrowserCompositorOutputSurface::DiscardBackbuffer() {
49 software_device()->DiscardBackbuffer(); 49 software_device()->DiscardBackbuffer();
50 } 50 }
51 51
52 void SoftwareBrowserCompositorOutputSurface::BindFramebuffer() { 52 void SoftwareBrowserCompositorOutputSurface::BindFramebuffer() {
53 // Not used for software surfaces. 53 // Not used for software surfaces.
54 NOTREACHED(); 54 NOTREACHED();
55 } 55 }
56 56
57 void SoftwareBrowserCompositorOutputSurface::SetDrawRectangle(
58 const gfx::Rect& draw_rectangle) {
59 NOTREACHED();
60 }
61
57 void SoftwareBrowserCompositorOutputSurface::Reshape( 62 void SoftwareBrowserCompositorOutputSurface::Reshape(
58 const gfx::Size& size, 63 const gfx::Size& size,
59 float device_scale_factor, 64 float device_scale_factor,
60 const gfx::ColorSpace& color_space, 65 const gfx::ColorSpace& color_space,
61 bool has_alpha, 66 bool has_alpha,
62 bool use_stencil) { 67 bool use_stencil) {
63 software_device()->Resize(size, device_scale_factor); 68 software_device()->Resize(size, device_scale_factor);
64 } 69 }
65 70
66 void SoftwareBrowserCompositorOutputSurface::SwapBuffers( 71 void SoftwareBrowserCompositorOutputSurface::SwapBuffers(
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 return 0; 117 return 0;
113 } 118 }
114 119
115 #if defined(OS_MACOSX) 120 #if defined(OS_MACOSX)
116 void SoftwareBrowserCompositorOutputSurface::SetSurfaceSuspendedForRecycle( 121 void SoftwareBrowserCompositorOutputSurface::SetSurfaceSuspendedForRecycle(
117 bool suspended) { 122 bool suspended) {
118 } 123 }
119 #endif 124 #endif
120 125
121 } // namespace content 126 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698