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

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

Issue 10052018: Drop frontbuffers with ui-use-gpu-process, synchronized with browser, decoupled from backbuffer dro… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixing compile issue for content_unittests Created 8 years, 8 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
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::SetBufferAllocation(BufferAllocationState state) { 110 void GLSurface::SetBackbufferAllocation(bool allocated) {
111 }
112
113 void GLSurface::SetFrontbufferAllocation(bool allocated) {
111 } 114 }
112 115
113 void* GLSurface::GetShareHandle() { 116 void* GLSurface::GetShareHandle() {
114 NOTIMPLEMENTED(); 117 NOTIMPLEMENTED();
115 return NULL; 118 return NULL;
116 } 119 }
117 120
118 void* GLSurface::GetDisplay() { 121 void* GLSurface::GetDisplay() {
119 NOTIMPLEMENTED(); 122 NOTIMPLEMENTED();
120 return NULL; 123 return NULL;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 } 184 }
182 185
183 unsigned int GLSurfaceAdapter::GetBackingFrameBufferObject() { 186 unsigned int GLSurfaceAdapter::GetBackingFrameBufferObject() {
184 return surface_->GetBackingFrameBufferObject(); 187 return surface_->GetBackingFrameBufferObject();
185 } 188 }
186 189
187 bool GLSurfaceAdapter::OnMakeCurrent(GLContext* context) { 190 bool GLSurfaceAdapter::OnMakeCurrent(GLContext* context) {
188 return surface_->OnMakeCurrent(context); 191 return surface_->OnMakeCurrent(context);
189 } 192 }
190 193
191 void GLSurfaceAdapter::SetBufferAllocation(BufferAllocationState state) { 194 void GLSurfaceAdapter::SetBackbufferAllocation(bool allocated) {
192 surface_->SetBufferAllocation(state); 195 surface_->SetBackbufferAllocation(allocated);
196 }
197
198 void GLSurfaceAdapter::SetFrontbufferAllocation(bool allocated) {
199 surface_->SetFrontbufferAllocation(allocated);
193 } 200 }
194 201
195 void* GLSurfaceAdapter::GetShareHandle() { 202 void* GLSurfaceAdapter::GetShareHandle() {
196 return surface_->GetShareHandle(); 203 return surface_->GetShareHandle();
197 } 204 }
198 205
199 void* GLSurfaceAdapter::GetDisplay() { 206 void* GLSurfaceAdapter::GetDisplay() {
200 return surface_->GetDisplay(); 207 return surface_->GetDisplay();
201 } 208 }
202 209
203 void* GLSurfaceAdapter::GetConfig() { 210 void* GLSurfaceAdapter::GetConfig() {
204 return surface_->GetConfig(); 211 return surface_->GetConfig();
205 } 212 }
206 213
207 unsigned GLSurfaceAdapter::GetFormat() { 214 unsigned GLSurfaceAdapter::GetFormat() {
208 return surface_->GetFormat(); 215 return surface_->GetFormat();
209 } 216 }
210 217
211 } // namespace gfx 218 } // namespace gfx
OLDNEW
« content/common/gpu/texture_image_transport_surface.cc ('K') | « ui/gfx/gl/gl_surface.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698