OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "cc/output/output_surface.h" | 5 #include "cc/output/output_surface.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 void OutputSurface::Reshape(gfx::Size size, float scale_factor) { | 114 void OutputSurface::Reshape(gfx::Size size, float scale_factor) { |
115 DCHECK(context3d_); | 115 DCHECK(context3d_); |
116 context3d_->reshapeWithScaleFactor(size.width(), size.height(), scale_factor); | 116 context3d_->reshapeWithScaleFactor(size.width(), size.height(), scale_factor); |
117 } | 117 } |
118 | 118 |
119 void OutputSurface::BindFramebuffer() { | 119 void OutputSurface::BindFramebuffer() { |
120 DCHECK(context3d_); | 120 DCHECK(context3d_); |
121 context3d_->bindFramebuffer(GL_FRAMEBUFFER, 0); | 121 context3d_->bindFramebuffer(GL_FRAMEBUFFER, 0); |
122 } | 122 } |
123 | 123 |
124 void OutputSurface::SwapBuffers(const LatencyInfo& latency_info) { | 124 void OutputSurface::SwapBuffers(const ui::LatencyInfo& latency_info) { |
125 DCHECK(context3d_); | 125 DCHECK(context3d_); |
126 // Note that currently this has the same effect as SwapBuffers; we should | 126 // Note that currently this has the same effect as SwapBuffers; we should |
127 // consider exposing a different entry point on WebGraphicsContext3D. | 127 // consider exposing a different entry point on WebGraphicsContext3D. |
128 context3d_->prepareTexture(); | 128 context3d_->prepareTexture(); |
129 } | 129 } |
130 | 130 |
131 void OutputSurface::PostSubBuffer(gfx::Rect rect, | 131 void OutputSurface::PostSubBuffer(gfx::Rect rect, |
132 const LatencyInfo& latency_info) { | 132 const ui::LatencyInfo& latency_info) { |
133 DCHECK(context3d_); | 133 DCHECK(context3d_); |
134 context3d_->postSubBufferCHROMIUM( | 134 context3d_->postSubBufferCHROMIUM( |
135 rect.x(), rect.y(), rect.width(), rect.height()); | 135 rect.x(), rect.y(), rect.width(), rect.height()); |
136 } | 136 } |
137 | 137 |
138 } // namespace cc | 138 } // namespace cc |
OLD | NEW |