OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/gpu/gpu_backing_store_glx.h" | 5 #include "chrome/gpu/gpu_backing_store_glx.h" |
6 | 6 |
7 #include "app/gfx/gl/gl_bindings.h" | 7 #include "app/gfx/gl/gl_bindings.h" |
8 #include "app/surface/transport_dib.h" | 8 #include "app/surface/transport_dib.h" |
9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
10 #include "chrome/common/gpu_messages.h" | 10 #include "chrome/common/gpu_messages.h" |
11 #include "chrome/gpu/gpu_backing_store_glx_context.h" | 11 #include "chrome/gpu/gpu_backing_store_glx_context.h" |
12 #include "chrome/gpu/gpu_thread.h" | 12 #include "chrome/gpu/gpu_thread.h" |
13 #include "chrome/gpu/gpu_view_x.h" | 13 #include "chrome/gpu/gpu_view_x.h" |
| 14 #include "gfx/rect.h" |
14 #include "skia/ext/platform_canvas.h" | 15 #include "skia/ext/platform_canvas.h" |
15 #include "third_party/skia/include/core/SkBitmap.h" | 16 #include "third_party/skia/include/core/SkBitmap.h" |
16 | 17 |
17 GpuBackingStoreGLX::GpuBackingStoreGLX(GpuViewX* view, | 18 GpuBackingStoreGLX::GpuBackingStoreGLX(GpuViewX* view, |
18 GpuThread* gpu_thread, | 19 GpuThread* gpu_thread, |
19 int32 routing_id, | 20 int32 routing_id, |
20 const gfx::Size& size) | 21 const gfx::Size& size) |
21 : view_(view), | 22 : view_(view), |
22 gpu_thread_(gpu_thread), | 23 gpu_thread_(gpu_thread), |
23 routing_id_(routing_id), | 24 routing_id_(routing_id), |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 DCHECK(err == GL_NO_ERROR) << "Error " << err << | 221 DCHECK(err == GL_NO_ERROR) << "Error " << err << |
221 " copying (" << copy_rect.x() << "," << copy_rect.y() << | 222 " copying (" << copy_rect.x() << "," << copy_rect.y() << |
222 ")," << copy_rect.width() << "x" << copy_rect.height() << | 223 ")," << copy_rect.width() << "x" << copy_rect.height() << |
223 " for bitmap " << texture_size_.width() << "x" << | 224 " for bitmap " << texture_size_.width() << "x" << |
224 texture_size_.height() << | 225 texture_size_.height() << |
225 " real size " << existing_width << "x" << existing_height << | 226 " real size " << existing_width << "x" << existing_height << |
226 " for " << this; | 227 " for " << this; |
227 */ | 228 */ |
228 } | 229 } |
229 } | 230 } |
OLD | NEW |