| 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_BROWSER_RENDERER_HOST_BACKING_STORE_WIN_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_WIN_H_ |
| 6 #define CHROME_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 "chrome/browser/renderer_host/backing_store.h" | 12 #include "content/browser/renderer_host/backing_store.h" |
| 13 | 13 |
| 14 class BackingStoreWin : public BackingStore { | 14 class BackingStoreWin : public BackingStore { |
| 15 public: | 15 public: |
| 16 BackingStoreWin(RenderWidgetHost* widget, const gfx::Size& size); | 16 BackingStoreWin(RenderWidgetHost* widget, const gfx::Size& size); |
| 17 virtual ~BackingStoreWin(); | 17 virtual ~BackingStoreWin(); |
| 18 | 18 |
| 19 HDC hdc() { return hdc_; } | 19 HDC hdc() { return hdc_; } |
| 20 | 20 |
| 21 // Returns true if we should convert to the monitor profile when painting. | 21 // Returns true if we should convert to the monitor profile when painting. |
| 22 static bool ColorManagementEnabled(); | 22 static bool ColorManagementEnabled(); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 42 | 42 |
| 43 // Handle to the original bitmap in the dc. | 43 // Handle to the original bitmap in the dc. |
| 44 HANDLE original_bitmap_; | 44 HANDLE original_bitmap_; |
| 45 | 45 |
| 46 // Number of bits per pixel of the screen. | 46 // Number of bits per pixel of the screen. |
| 47 int color_depth_; | 47 int color_depth_; |
| 48 | 48 |
| 49 DISALLOW_COPY_AND_ASSIGN(BackingStoreWin); | 49 DISALLOW_COPY_AND_ASSIGN(BackingStoreWin); |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 #endif // CHROME_BROWSER_RENDERER_HOST_BACKING_STORE_WIN_H_ | 52 #endif // CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_WIN_H_ |
| OLD | NEW |