OLD | NEW |
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/message_loop.h" | 5 #include "base/message_loop.h" |
6 #include "gpu/command_buffer/service/gpu_processor.h" | 6 #include "gpu/command_buffer/service/gpu_processor.h" |
7 | 7 |
8 using ::base::SharedMemory; | 8 using ::base::SharedMemory; |
9 | 9 |
10 namespace gpu { | 10 namespace gpu { |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 command_buffer_->SetGetOffset(static_cast<int32>(parser_->get())); | 75 command_buffer_->SetGetOffset(static_cast<int32>(parser_->get())); |
76 return true; | 76 return true; |
77 } | 77 } |
78 return false; | 78 return false; |
79 } | 79 } |
80 | 80 |
81 int32 GPUProcessor::GetGetOffset() { | 81 int32 GPUProcessor::GetGetOffset() { |
82 return parser_->get(); | 82 return parser_->get(); |
83 } | 83 } |
84 | 84 |
| 85 #if defined(OS_MACOSX) |
| 86 uint64 GPUProcessor::SetWindowSize(int32 width, int32 height) { |
| 87 return decoder_->SetWindowSize(width, height); |
| 88 } |
| 89 #endif |
| 90 |
| 91 void GPUProcessor::SetSwapBuffersCallback( |
| 92 Callback0::Type* callback) { |
| 93 decoder_->SetSwapBuffersCallback(callback); |
| 94 } |
| 95 |
85 } // namespace gpu | 96 } // namespace gpu |
OLD | NEW |