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

Side by Side Diff: chrome/browser/renderer_host/backing_store_win.cc

Issue 259047: Move classes depending on Skia out of base/gfx and into app/gfx. Rename... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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) 2009 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 #include "chrome/browser/renderer_host/backing_store.h" 5 #include "chrome/browser/renderer_host/backing_store.h"
6 6
7 #include "app/gfx/gdi_util.h"
7 #include "base/command_line.h" 8 #include "base/command_line.h"
8 #include "base/gfx/gdi_util.h"
9 #include "chrome/browser/renderer_host/render_widget_host.h" 9 #include "chrome/browser/renderer_host/render_widget_host.h"
10 #include "chrome/common/chrome_switches.h" 10 #include "chrome/common/chrome_switches.h"
11 #include "chrome/common/transport_dib.h" 11 #include "chrome/common/transport_dib.h"
12 12
13 namespace { 13 namespace {
14 14
15 // Creates a dib conforming to the height/width/section parameters passed in. 15 // Creates a dib conforming to the height/width/section parameters passed in.
16 HANDLE CreateDIB(HDC dc, int width, int height, int color_depth) { 16 HANDLE CreateDIB(HDC dc, int width, int height, int color_depth) {
17 BITMAPV5HEADER hdr = {0}; 17 BITMAPV5HEADER hdr = {0};
18 ZeroMemory(&hdr, sizeof(BITMAPV5HEADER)); 18 ZeroMemory(&hdr, sizeof(BITMAPV5HEADER));
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 ScrollDC(hdc_, dx, dy, NULL, &r, NULL, &damaged_rect); 130 ScrollDC(hdc_, dx, dy, NULL, &r, NULL, &damaged_rect);
131 131
132 // TODO(darin): this doesn't work if dx and dy are both non-zero! 132 // TODO(darin): this doesn't work if dx and dy are both non-zero!
133 DCHECK(dx == 0 || dy == 0); 133 DCHECK(dx == 0 || dy == 0);
134 134
135 // We expect that damaged_rect should equal bitmap_rect. 135 // We expect that damaged_rect should equal bitmap_rect.
136 DCHECK(gfx::Rect(damaged_rect) == bitmap_rect); 136 DCHECK(gfx::Rect(damaged_rect) == bitmap_rect);
137 137
138 PaintRect(process, bitmap, bitmap_rect); 138 PaintRect(process, bitmap, bitmap_rect);
139 } 139 }
OLDNEW
« no previous file with comments | « chrome/browser/printing/printing_layout_uitest.cc ('k') | chrome/browser/renderer_host/render_widget_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698