Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Side by Side Diff: chrome/browser/renderer_host/backing_store.h

Issue 131002: Enable off-by-default monitor color management on Windows. This is enabled vi... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_BACKING_STORE_H_
6 #define CHROME_BROWSER_RENDERER_HOST_BACKING_STORE_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_BACKING_STORE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/gfx/rect.h" 9 #include "base/gfx/rect.h"
10 #include "base/gfx/size.h" 10 #include "base/gfx/size.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 BackingStore(RenderWidgetHost* widget, const gfx::Size& size); 45 BackingStore(RenderWidgetHost* widget, const gfx::Size& size);
46 #endif 46 #endif
47 ~BackingStore(); 47 ~BackingStore();
48 48
49 RenderWidgetHost* render_widget_host() const { return render_widget_host_; } 49 RenderWidgetHost* render_widget_host() const { return render_widget_host_; }
50 const gfx::Size& size() { return size_; } 50 const gfx::Size& size() { return size_; }
51 51
52 #if defined(OS_WIN) 52 #if defined(OS_WIN)
53 HDC hdc() { return hdc_; } 53 HDC hdc() { return hdc_; }
54 54
55 // Returns true if we should convert to the monitor profile when painting.
56 static bool ColorManagementEnabled();
57
55 #elif defined(OS_MACOSX) 58 #elif defined(OS_MACOSX)
56 skia::PlatformCanvas* canvas() { return &canvas_; } 59 skia::PlatformCanvas* canvas() { return &canvas_; }
57 60
58 #elif defined(OS_LINUX) 61 #elif defined(OS_LINUX)
59 // Copy from the server-side backing store to the target window 62 // Copy from the server-side backing store to the target window
60 // display: the display of the backing store and target window 63 // display: the display of the backing store and target window
61 // damage: the area to copy 64 // damage: the area to copy
62 // target: the X id of the target window 65 // target: the X id of the target window
63 void ShowRect(const gfx::Rect& damage, XID target); 66 void ShowRect(const gfx::Rect& damage, XID target);
64 #endif 67 #endif
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 // This is the RENDER picture pointing at |pixmap_|. 123 // This is the RENDER picture pointing at |pixmap_|.
121 XID picture_; 124 XID picture_;
122 // This is a default graphic context, used in XCopyArea 125 // This is a default graphic context, used in XCopyArea
123 void* pixmap_gc_; 126 void* pixmap_gc_;
124 #endif 127 #endif
125 128
126 DISALLOW_COPY_AND_ASSIGN(BackingStore); 129 DISALLOW_COPY_AND_ASSIGN(BackingStore);
127 }; 130 };
128 131
129 #endif // CHROME_BROWSER_RENDERER_HOST_BACKING_STORE_H_ 132 #endif // CHROME_BROWSER_RENDERER_HOST_BACKING_STORE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/renderer_host/backing_store_win.cc » ('j') | chrome/browser/renderer_host/backing_store_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698