OLD | NEW |
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 Loading... |
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 |
OLD | NEW |