| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "ui/gl/gl_surface.h" | 5 #include "ui/gl/gl_surface.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 } | 94 } |
| 95 | 95 |
| 96 bool GLSurface::PostSubBuffer(int x, int y, int width, int height) { | 96 bool GLSurface::PostSubBuffer(int x, int y, int width, int height) { |
| 97 return false; | 97 return false; |
| 98 } | 98 } |
| 99 | 99 |
| 100 bool GLSurface::OnMakeCurrent(GLContext* context) { | 100 bool GLSurface::OnMakeCurrent(GLContext* context) { |
| 101 return true; | 101 return true; |
| 102 } | 102 } |
| 103 | 103 |
| 104 void GLSurface::SetBufferAllocation(BufferAllocationState state) { | 104 void GLSurface::SetBackbufferAllocation(bool allocated) { |
| 105 } |
| 106 |
| 107 void GLSurface::SetFrontbufferAllocation(bool allocated) { |
| 105 } | 108 } |
| 106 | 109 |
| 107 void* GLSurface::GetShareHandle() { | 110 void* GLSurface::GetShareHandle() { |
| 108 NOTIMPLEMENTED(); | 111 NOTIMPLEMENTED(); |
| 109 return NULL; | 112 return NULL; |
| 110 } | 113 } |
| 111 | 114 |
| 112 void* GLSurface::GetDisplay() { | 115 void* GLSurface::GetDisplay() { |
| 113 NOTIMPLEMENTED(); | 116 NOTIMPLEMENTED(); |
| 114 return NULL; | 117 return NULL; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 } | 179 } |
| 177 | 180 |
| 178 unsigned int GLSurfaceAdapter::GetBackingFrameBufferObject() { | 181 unsigned int GLSurfaceAdapter::GetBackingFrameBufferObject() { |
| 179 return surface_->GetBackingFrameBufferObject(); | 182 return surface_->GetBackingFrameBufferObject(); |
| 180 } | 183 } |
| 181 | 184 |
| 182 bool GLSurfaceAdapter::OnMakeCurrent(GLContext* context) { | 185 bool GLSurfaceAdapter::OnMakeCurrent(GLContext* context) { |
| 183 return surface_->OnMakeCurrent(context); | 186 return surface_->OnMakeCurrent(context); |
| 184 } | 187 } |
| 185 | 188 |
| 186 void GLSurfaceAdapter::SetBufferAllocation(BufferAllocationState state) { | 189 void GLSurfaceAdapter::SetBackbufferAllocation(bool allocated) { |
| 187 surface_->SetBufferAllocation(state); | 190 surface_->SetBackbufferAllocation(allocated); |
| 191 } |
| 192 |
| 193 void GLSurfaceAdapter::SetFrontbufferAllocation(bool allocated) { |
| 194 surface_->SetFrontbufferAllocation(allocated); |
| 188 } | 195 } |
| 189 | 196 |
| 190 void* GLSurfaceAdapter::GetShareHandle() { | 197 void* GLSurfaceAdapter::GetShareHandle() { |
| 191 return surface_->GetShareHandle(); | 198 return surface_->GetShareHandle(); |
| 192 } | 199 } |
| 193 | 200 |
| 194 void* GLSurfaceAdapter::GetDisplay() { | 201 void* GLSurfaceAdapter::GetDisplay() { |
| 195 return surface_->GetDisplay(); | 202 return surface_->GetDisplay(); |
| 196 } | 203 } |
| 197 | 204 |
| 198 void* GLSurfaceAdapter::GetConfig() { | 205 void* GLSurfaceAdapter::GetConfig() { |
| 199 return surface_->GetConfig(); | 206 return surface_->GetConfig(); |
| 200 } | 207 } |
| 201 | 208 |
| 202 unsigned GLSurfaceAdapter::GetFormat() { | 209 unsigned GLSurfaceAdapter::GetFormat() { |
| 203 return surface_->GetFormat(); | 210 return surface_->GetFormat(); |
| 204 } | 211 } |
| 205 | 212 |
| 206 GLSurfaceAdapter::~GLSurfaceAdapter() {} | 213 GLSurfaceAdapter::~GLSurfaceAdapter() {} |
| 207 | 214 |
| 208 } // namespace gfx | 215 } // namespace gfx |
| OLD | NEW |