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

Side by Side Diff: gpu/command_buffer/service/gpu_processor.cc

Issue 5105006: Resize synchronization for Linux. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: make -j17 all is my friend (fix the test build). Created 10 years 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 | « gpu/command_buffer/service/gpu_processor.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "base/callback.h" 5 #include "base/callback.h"
6 #include "base/compiler_specific.h" 6 #include "base/compiler_specific.h"
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "app/gfx/gl/gl_context.h" 8 #include "app/gfx/gl/gl_context.h"
9 #include "gpu/command_buffer/service/gpu_processor.h" 9 #include "gpu/command_buffer/service/gpu_processor.h"
10 10
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 } 138 }
139 139
140 int32 GPUProcessor::GetGetOffset() { 140 int32 GPUProcessor::GetGetOffset() {
141 return parser_->get(); 141 return parser_->get();
142 } 142 }
143 143
144 void GPUProcessor::ResizeOffscreenFrameBuffer(const gfx::Size& size) { 144 void GPUProcessor::ResizeOffscreenFrameBuffer(const gfx::Size& size) {
145 decoder_->ResizeOffscreenFrameBuffer(size); 145 decoder_->ResizeOffscreenFrameBuffer(size);
146 } 146 }
147 147
148 void GPUProcessor::SetResizeCallback(Callback1<gfx::Size>::Type* callback) {
149 decoder_->SetResizeCallback(callback);
150 }
151
148 void GPUProcessor::SetSwapBuffersCallback( 152 void GPUProcessor::SetSwapBuffersCallback(
149 Callback0::Type* callback) { 153 Callback0::Type* callback) {
150 wrapped_swap_buffers_callback_.reset(callback); 154 wrapped_swap_buffers_callback_.reset(callback);
151 decoder_->SetSwapBuffersCallback( 155 decoder_->SetSwapBuffersCallback(
152 NewCallback(this, 156 NewCallback(this,
153 &GPUProcessor::WillSwapBuffers)); 157 &GPUProcessor::WillSwapBuffers));
154 } 158 }
155 159
156 } // namespace gpu 160 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gpu_processor.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698