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

Side by Side Diff: cc/output/software_output_device.cc

Issue 132163009: [#6]Pass gfx structs by const ref (gfx::Vector2d) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on TOT Created 6 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
« no previous file with comments | « cc/output/software_output_device.h ('k') | cc/resources/bitmap_content_layer_updater.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "cc/output/software_output_device.h" 5 #include "cc/output/software_output_device.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "cc/output/software_frame_data.h" 8 #include "cc/output/software_frame_data.h"
9 #include "third_party/skia/include/core/SkBitmapDevice.h" 9 #include "third_party/skia/include/core/SkBitmapDevice.h"
10 #include "third_party/skia/include/core/SkCanvas.h" 10 #include "third_party/skia/include/core/SkCanvas.h"
(...skipping 30 matching lines...) Expand all
41 frame_data->handle = base::SharedMemory::NULLHandle(); 41 frame_data->handle = base::SharedMemory::NULLHandle();
42 } 42 }
43 43
44 void SoftwareOutputDevice::CopyToBitmap( 44 void SoftwareOutputDevice::CopyToBitmap(
45 const gfx::Rect& rect, SkBitmap* output) { 45 const gfx::Rect& rect, SkBitmap* output) {
46 DCHECK(device_); 46 DCHECK(device_);
47 const SkBitmap& bitmap = device_->accessBitmap(false); 47 const SkBitmap& bitmap = device_->accessBitmap(false);
48 bitmap.extractSubset(output, gfx::RectToSkIRect(rect)); 48 bitmap.extractSubset(output, gfx::RectToSkIRect(rect));
49 } 49 }
50 50
51 void SoftwareOutputDevice::Scroll( 51 void SoftwareOutputDevice::Scroll(const gfx::Vector2d& delta,
52 gfx::Vector2d delta, const gfx::Rect& clip_rect) { 52 const gfx::Rect& clip_rect) {
53 NOTIMPLEMENTED(); 53 NOTIMPLEMENTED();
54 } 54 }
55 55
56 void SoftwareOutputDevice::ReclaimSoftwareFrame(unsigned id) { 56 void SoftwareOutputDevice::ReclaimSoftwareFrame(unsigned id) {
57 NOTIMPLEMENTED(); 57 NOTIMPLEMENTED();
58 } 58 }
59 59
60 gfx::VSyncProvider* SoftwareOutputDevice::GetVSyncProvider() { 60 gfx::VSyncProvider* SoftwareOutputDevice::GetVSyncProvider() {
61 return vsync_provider_.get(); 61 return vsync_provider_.get();
62 } 62 }
63 63
64 } // namespace cc 64 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/software_output_device.h ('k') | cc/resources/bitmap_content_layer_updater.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698