| 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_WIN_H_ | 5 #ifndef CHROME_GPU_GPU_BACKING_STORE_WIN_H_ |
| 6 #define CHROME_GPU_GPU_BACKING_STORE_WIN_H_ | 6 #define CHROME_GPU_GPU_BACKING_STORE_WIN_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <windows.h> | 9 #include <windows.h> |
| 10 | 10 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 gfx::Size size() const { return size_; } | 35 gfx::Size size() const { return size_; } |
| 36 HDC hdc() const { return hdc_; } | 36 HDC hdc() const { return hdc_; } |
| 37 | 37 |
| 38 // IPC::Channel::Listener implementation. | 38 // IPC::Channel::Listener implementation. |
| 39 virtual void OnMessageReceived(const IPC::Message& message); | 39 virtual void OnMessageReceived(const IPC::Message& message); |
| 40 virtual void OnChannelConnected(int32 peer_pid); | 40 virtual void OnChannelConnected(int32 peer_pid); |
| 41 virtual void OnChannelError(); | 41 virtual void OnChannelError(); |
| 42 | 42 |
| 43 private: | 43 private: |
| 44 // Message handlers. | 44 // Message handlers. |
| 45 void OnPaintToBackingStore(base::ProcessId source_process_id, | 45 void OnPaintToBackingStore(TransportDIB::Handle dib_handle, |
| 46 TransportDIB::Id id, | |
| 47 const gfx::Rect& bitmap_rect, | 46 const gfx::Rect& bitmap_rect, |
| 48 const std::vector<gfx::Rect>& copy_rects); | 47 const std::vector<gfx::Rect>& copy_rects); |
| 49 void OnScrollBackingStore(int dx, int dy, | 48 void OnScrollBackingStore(int dx, int dy, |
| 50 const gfx::Rect& clip_rect, | 49 const gfx::Rect& clip_rect, |
| 51 const gfx::Size& view_size); | 50 const gfx::Size& view_size); |
| 52 | 51 |
| 53 GpuViewWin* view_; | 52 GpuViewWin* view_; |
| 54 | 53 |
| 55 GpuThread* gpu_thread_; | 54 GpuThread* gpu_thread_; |
| 56 int32 routing_id_; | 55 int32 routing_id_; |
| 57 | 56 |
| 58 gfx::Size size_; | 57 gfx::Size size_; |
| 59 | 58 |
| 60 // The backing store dc. | 59 // The backing store dc. |
| 61 HDC hdc_; | 60 HDC hdc_; |
| 62 | 61 |
| 63 // Handle to the backing store dib. | 62 // Handle to the backing store dib. |
| 64 HANDLE backing_store_dib_; | 63 HANDLE backing_store_dib_; |
| 65 | 64 |
| 66 // Handle to the original bitmap in the dc. | 65 // Handle to the original bitmap in the dc. |
| 67 HANDLE original_bitmap_; | 66 HANDLE original_bitmap_; |
| 68 | 67 |
| 69 // Number of bits per pixel of the screen. | 68 // Number of bits per pixel of the screen. |
| 70 int color_depth_; | 69 int color_depth_; |
| 71 | 70 |
| 72 DISALLOW_COPY_AND_ASSIGN(GpuBackingStoreWin); | 71 DISALLOW_COPY_AND_ASSIGN(GpuBackingStoreWin); |
| 73 }; | 72 }; |
| 74 | 73 |
| 75 #endif // CHROME_GPU_GPU_BACKING_STORE_WIN_H_ | 74 #endif // CHROME_GPU_GPU_BACKING_STORE_WIN_H_ |
| OLD | NEW |