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

Side by Side Diff: ui/gfx/gl/gl_surface.cc

Issue 9703024: Replacing GLSurface::SetVisibility with SetBufferAllocation for more explicit management. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « ui/gfx/gl/gl_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) 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/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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 } 100 }
101 101
102 bool GLSurface::PostSubBuffer(int x, int y, int width, int height) { 102 bool GLSurface::PostSubBuffer(int x, int y, int width, int height) {
103 return false; 103 return false;
104 } 104 }
105 105
106 bool GLSurface::OnMakeCurrent(GLContext* context) { 106 bool GLSurface::OnMakeCurrent(GLContext* context) {
107 return true; 107 return true;
108 } 108 }
109 109
110 void GLSurface::SetVisibility(VisibilityState visibility_state) { 110 void GLSurface::SetBufferAllocation(BufferAllocationState state) {
111 } 111 }
112 112
113 void* GLSurface::GetShareHandle() { 113 void* GLSurface::GetShareHandle() {
114 NOTIMPLEMENTED(); 114 NOTIMPLEMENTED();
115 return NULL; 115 return NULL;
116 } 116 }
117 117
118 void* GLSurface::GetDisplay() { 118 void* GLSurface::GetDisplay() {
119 NOTIMPLEMENTED(); 119 NOTIMPLEMENTED();
120 return NULL; 120 return NULL;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 } 181 }
182 182
183 unsigned int GLSurfaceAdapter::GetBackingFrameBufferObject() { 183 unsigned int GLSurfaceAdapter::GetBackingFrameBufferObject() {
184 return surface_->GetBackingFrameBufferObject(); 184 return surface_->GetBackingFrameBufferObject();
185 } 185 }
186 186
187 bool GLSurfaceAdapter::OnMakeCurrent(GLContext* context) { 187 bool GLSurfaceAdapter::OnMakeCurrent(GLContext* context) {
188 return surface_->OnMakeCurrent(context); 188 return surface_->OnMakeCurrent(context);
189 } 189 }
190 190
191 void GLSurfaceAdapter::SetVisibility(VisibilityState visibility_state) { 191 void GLSurfaceAdapter::SetBufferAllocation(BufferAllocationState state) {
192 surface_->SetVisibility(visibility_state); 192 surface_->SetBufferAllocation(state);
193 } 193 }
194 194
195 void* GLSurfaceAdapter::GetShareHandle() { 195 void* GLSurfaceAdapter::GetShareHandle() {
196 return surface_->GetShareHandle(); 196 return surface_->GetShareHandle();
197 } 197 }
198 198
199 void* GLSurfaceAdapter::GetDisplay() { 199 void* GLSurfaceAdapter::GetDisplay() {
200 return surface_->GetDisplay(); 200 return surface_->GetDisplay();
201 } 201 }
202 202
203 void* GLSurfaceAdapter::GetConfig() { 203 void* GLSurfaceAdapter::GetConfig() {
204 return surface_->GetConfig(); 204 return surface_->GetConfig();
205 } 205 }
206 206
207 unsigned GLSurfaceAdapter::GetFormat() { 207 unsigned GLSurfaceAdapter::GetFormat() {
208 return surface_->GetFormat(); 208 return surface_->GetFormat();
209 } 209 }
210 210
211 } // namespace gfx 211 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gfx/gl/gl_surface.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698