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

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

Issue 6312156: Change includes of gfx/* to ui/gfx/* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 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) 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 #include "chrome/browser/renderer_host/backing_store_win.h" 5 #include "chrome/browser/renderer_host/backing_store_win.h"
6 6
7 #include "app/surface/transport_dib.h" 7 #include "app/surface/transport_dib.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "chrome/browser/renderer_host/render_process_host.h" 9 #include "chrome/browser/renderer_host/render_process_host.h"
10 #include "chrome/browser/renderer_host/render_widget_host.h" 10 #include "chrome/browser/renderer_host/render_widget_host.h"
11 #include "chrome/common/chrome_switches.h" 11 #include "chrome/common/chrome_switches.h"
12 #include "gfx/gdi_util.h"
13 #include "skia/ext/platform_canvas.h" 12 #include "skia/ext/platform_canvas.h"
13 #include "ui/gfx/gdi_util.h"
14 14
15 namespace { 15 namespace {
16 16
17 // Creates a dib conforming to the height/width/section parameters passed in. 17 // Creates a dib conforming to the height/width/section parameters passed in.
18 HANDLE CreateDIB(HDC dc, int width, int height, int color_depth) { 18 HANDLE CreateDIB(HDC dc, int width, int height, int color_depth) {
19 BITMAPV5HEADER hdr = {0}; 19 BITMAPV5HEADER hdr = {0};
20 ZeroMemory(&hdr, sizeof(BITMAPV5HEADER)); 20 ZeroMemory(&hdr, sizeof(BITMAPV5HEADER));
21 21
22 // These values are shared with gfx::PlatformDevice 22 // These values are shared with gfx::PlatformDevice
23 hdr.bV5Size = sizeof(BITMAPINFOHEADER); 23 hdr.bV5Size = sizeof(BITMAPINFOHEADER);
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 166
167 void BackingStoreWin::ScrollBackingStore(int dx, int dy, 167 void BackingStoreWin::ScrollBackingStore(int dx, int dy,
168 const gfx::Rect& clip_rect, 168 const gfx::Rect& clip_rect,
169 const gfx::Size& view_size) { 169 const gfx::Size& view_size) {
170 RECT damaged_rect, r = clip_rect.ToRECT(); 170 RECT damaged_rect, r = clip_rect.ToRECT();
171 ScrollDC(hdc_, dx, dy, NULL, &r, NULL, &damaged_rect); 171 ScrollDC(hdc_, dx, dy, NULL, &r, NULL, &damaged_rect);
172 172
173 // TODO(darin): this doesn't work if dx and dy are both non-zero! 173 // TODO(darin): this doesn't work if dx and dy are both non-zero!
174 DCHECK(dx == 0 || dy == 0); 174 DCHECK(dx == 0 || dy == 0);
175 } 175 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/backing_store_manager.h ('k') | chrome/browser/renderer_host/backing_store_x.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698