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

Unified Diff: cc/output/output_surface.cc

Issue 16430005: Call OnSwapBuffersComplete at the end of each frame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tidy Begin/End Paint Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/output/software_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/output_surface.cc
diff --git a/cc/output/output_surface.cc b/cc/output/output_surface.cc
index 1be41892a648a16d3ab2f6496bae61d0cc0d1f23..dc34eab4b9c8d05280fff9a0ad7f7342bbfdc66b 100644
--- a/cc/output/output_surface.cc
+++ b/cc/output/output_surface.cc
@@ -136,10 +136,11 @@ void OutputSurface::BindFramebuffer() {
}
void OutputSurface::SwapBuffers(const ui::LatencyInfo& latency_info) {
- DCHECK(context3d_);
- // Note that currently this has the same effect as SwapBuffers; we should
- // consider exposing a different entry point on WebGraphicsContext3D.
- context3d_->prepareTexture();
+ if (context3d_) {
+ // Note that currently this has the same effect as SwapBuffers; we should
+ // consider exposing a different entry point on WebGraphicsContext3D.
+ context3d_->prepareTexture();
+ }
}
void OutputSurface::PostSubBuffer(gfx::Rect rect,
« no previous file with comments | « no previous file | cc/output/software_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698