| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/gfx/gl/gl_surface.h" | 5 #include "ui/gfx/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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 } | 102 } |
| 103 | 103 |
| 104 bool GLSurface::PostSubBuffer(int x, int y, int width, int height) { | 104 bool GLSurface::PostSubBuffer(int x, int y, int width, int height) { |
| 105 return false; | 105 return false; |
| 106 } | 106 } |
| 107 | 107 |
| 108 bool GLSurface::OnMakeCurrent(GLContext* context) { | 108 bool GLSurface::OnMakeCurrent(GLContext* context) { |
| 109 return true; | 109 return true; |
| 110 } | 110 } |
| 111 | 111 |
| 112 void GLSurface::SetVisible(bool visible) { | 112 void GLSurface::SetResourceUsage(ResourceUsage resourceUsage) { |
| 113 } | 113 } |
| 114 | 114 |
| 115 void* GLSurface::GetShareHandle() { | 115 void* GLSurface::GetShareHandle() { |
| 116 NOTIMPLEMENTED(); | 116 NOTIMPLEMENTED(); |
| 117 return NULL; | 117 return NULL; |
| 118 } | 118 } |
| 119 | 119 |
| 120 void* GLSurface::GetDisplay() { | 120 void* GLSurface::GetDisplay() { |
| 121 NOTIMPLEMENTED(); | 121 NOTIMPLEMENTED(); |
| 122 return NULL; | 122 return NULL; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 } | 183 } |
| 184 | 184 |
| 185 unsigned int GLSurfaceAdapter::GetBackingFrameBufferObject() { | 185 unsigned int GLSurfaceAdapter::GetBackingFrameBufferObject() { |
| 186 return surface_->GetBackingFrameBufferObject(); | 186 return surface_->GetBackingFrameBufferObject(); |
| 187 } | 187 } |
| 188 | 188 |
| 189 bool GLSurfaceAdapter::OnMakeCurrent(GLContext* context) { | 189 bool GLSurfaceAdapter::OnMakeCurrent(GLContext* context) { |
| 190 return surface_->OnMakeCurrent(context); | 190 return surface_->OnMakeCurrent(context); |
| 191 } | 191 } |
| 192 | 192 |
| 193 void GLSurfaceAdapter::SetVisible(bool visible) { | 193 void GLSurfaceAdapter::SetResourceUsage(ResourceUsage resourceUsage) { |
| 194 surface_->SetVisible(visible); | 194 surface_->SetResourceUsage(resourceUsage); |
| 195 } | 195 } |
| 196 | 196 |
| 197 void* GLSurfaceAdapter::GetShareHandle() { | 197 void* GLSurfaceAdapter::GetShareHandle() { |
| 198 return surface_->GetShareHandle(); | 198 return surface_->GetShareHandle(); |
| 199 } | 199 } |
| 200 | 200 |
| 201 void* GLSurfaceAdapter::GetDisplay() { | 201 void* GLSurfaceAdapter::GetDisplay() { |
| 202 return surface_->GetDisplay(); | 202 return surface_->GetDisplay(); |
| 203 } | 203 } |
| 204 | 204 |
| 205 void* GLSurfaceAdapter::GetConfig() { | 205 void* GLSurfaceAdapter::GetConfig() { |
| 206 return surface_->GetConfig(); | 206 return surface_->GetConfig(); |
| 207 } | 207 } |
| 208 | 208 |
| 209 unsigned GLSurfaceAdapter::GetFormat() { | 209 unsigned GLSurfaceAdapter::GetFormat() { |
| 210 return surface_->GetFormat(); | 210 return surface_->GetFormat(); |
| 211 } | 211 } |
| 212 | 212 |
| 213 } // namespace gfx | 213 } // namespace gfx |
| OLD | NEW |