| 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 #ifndef CHROME_GPU_GPU_BACKING_STORE_GLX_H_ | 5 #ifndef CHROME_GPU_GPU_BACKING_STORE_GLX_H_ |
| 6 #define CHROME_GPU_GPU_BACKING_STORE_GLX_H_ | 6 #define CHROME_GPU_GPU_BACKING_STORE_GLX_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "app/surface/transport_dib.h" | 9 #include "app/surface/transport_dib.h" |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/process.h" | 11 #include "base/process.h" |
| 12 #include "gfx/size.h" | 12 #include "gfx/size.h" |
| 13 #include "ipc/ipc_channel.h" | 13 #include "ipc/ipc_channel.h" |
| 14 #include "gfx/size.h" |
| 14 | 15 |
| 15 class GpuViewX; | 16 class GpuViewX; |
| 16 class GpuThread; | 17 class GpuThread; |
| 17 class SkBitmap; | 18 class SkBitmap; |
| 18 | 19 |
| 19 class GpuBackingStoreGLX : public IPC::Channel::Listener { | 20 class GpuBackingStoreGLX : public IPC::Channel::Listener { |
| 20 public: | 21 public: |
| 21 GpuBackingStoreGLX(GpuViewX* view, | 22 GpuBackingStoreGLX(GpuViewX* view, |
| 22 GpuThread* gpu_thread, | 23 GpuThread* gpu_thread, |
| 23 int32 routing_id, | 24 int32 routing_id, |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 // The size of the texture loaded into GL. This is 0x0 when there is no | 58 // The size of the texture loaded into GL. This is 0x0 when there is no |
| 58 // texture loaded. This may be different than the size of the backing store | 59 // texture loaded. This may be different than the size of the backing store |
| 59 // because we could have been resized without yet getting the updated | 60 // because we could have been resized without yet getting the updated |
| 60 // bitmap. | 61 // bitmap. |
| 61 gfx::Size texture_size_; | 62 gfx::Size texture_size_; |
| 62 | 63 |
| 63 DISALLOW_COPY_AND_ASSIGN(GpuBackingStoreGLX); | 64 DISALLOW_COPY_AND_ASSIGN(GpuBackingStoreGLX); |
| 64 }; | 65 }; |
| 65 | 66 |
| 66 #endif // CHROME_GPU_GPU_BACKING_STORE_GLX_H_ | 67 #endif // CHROME_GPU_GPU_BACKING_STORE_GLX_H_ |
| OLD | NEW |