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

Side by Side Diff: content/common/gpu/null_transport_surface.cc

Issue 649773002: gpu: Don't call SetSwapInterval() for NullTransportSurface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « content/common/gpu/null_transport_surface.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/common/gpu/null_transport_surface.h" 5 #include "content/common/gpu/null_transport_surface.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "content/common/gpu/gpu_channel.h" 8 #include "content/common/gpu/gpu_channel.h"
9 #include "content/common/gpu/gpu_channel_manager.h" 9 #include "content/common/gpu/gpu_channel_manager.h"
10 #include "content/common/gpu/gpu_command_buffer_stub.h" 10 #include "content/common/gpu/gpu_command_buffer_stub.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 bool NullTransportSurface::PostSubBuffer( 57 bool NullTransportSurface::PostSubBuffer(
58 int x, int y, int width, int height) { 58 int x, int y, int width, int height) {
59 NOTIMPLEMENTED(); 59 NOTIMPLEMENTED();
60 return false; 60 return false;
61 } 61 }
62 62
63 void NullTransportSurface::SendVSyncUpdateIfAvailable() { 63 void NullTransportSurface::SendVSyncUpdateIfAvailable() {
64 NOTREACHED(); 64 NOTREACHED();
65 } 65 }
66 66
67 bool NullTransportSurface::OnMakeCurrent(gfx::GLContext* context) {
68 // Override PassThroughImageTransportSurface default behavior which
69 // sets the swap interval.
70 return true;
71 }
72
67 } // namespace content 73 } // namespace content
OLDNEW
« no previous file with comments | « content/common/gpu/null_transport_surface.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698