| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_WIN_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_WIN_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_WIN_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_WIN_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <windows.h> | 9 #include <windows.h> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "content/browser/renderer_host/backing_store.h" | 13 #include "content/browser/renderer_host/backing_store.h" |
| 14 | 14 |
| 15 class BackingStoreWin : public BackingStore { | 15 class BackingStoreWin : public BackingStore { |
| 16 public: | 16 public: |
| 17 BackingStoreWin(RenderWidgetHost* widget, const gfx::Size& size); | 17 BackingStoreWin(content::RenderWidgetHost* widget, const gfx::Size& size); |
| 18 virtual ~BackingStoreWin(); | 18 virtual ~BackingStoreWin(); |
| 19 | 19 |
| 20 HDC hdc() { return hdc_; } | 20 HDC hdc() { return hdc_; } |
| 21 | 21 |
| 22 // Returns true if we should convert to the monitor profile when painting. | 22 // Returns true if we should convert to the monitor profile when painting. |
| 23 static bool ColorManagementEnabled(); | 23 static bool ColorManagementEnabled(); |
| 24 | 24 |
| 25 // BackingStore implementation. | 25 // BackingStore implementation. |
| 26 virtual size_t MemorySize() OVERRIDE; | 26 virtual size_t MemorySize() OVERRIDE; |
| 27 virtual void PaintToBackingStore( | 27 virtual void PaintToBackingStore( |
| (...skipping 19 matching lines...) Expand all Loading... |
| 47 // Handle to the original bitmap in the dc. | 47 // Handle to the original bitmap in the dc. |
| 48 HANDLE original_bitmap_; | 48 HANDLE original_bitmap_; |
| 49 | 49 |
| 50 // Number of bits per pixel of the screen. | 50 // Number of bits per pixel of the screen. |
| 51 int color_depth_; | 51 int color_depth_; |
| 52 | 52 |
| 53 DISALLOW_COPY_AND_ASSIGN(BackingStoreWin); | 53 DISALLOW_COPY_AND_ASSIGN(BackingStoreWin); |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 #endif // CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_WIN_H_ | 56 #endif // CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_WIN_H_ |
| OLD | NEW |