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

Side by Side Diff: chrome/utility/cloud_print/bitmap_image.cc

Issue 74873002: Fixed namespace in chrome/utility/cloud_print/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « chrome/utility/cloud_print/bitmap_image.h ('k') | chrome/utility/cloud_print/pwg_encoder.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 "chrome/utility/cloud_print/bitmap_image.h" 5 #include "chrome/utility/cloud_print/bitmap_image.h"
6 6
7 namespace printing { 7 namespace cloud_print {
8 8
9 namespace { 9 namespace {
10 const uint8 kCurrentlySupportedNumberOfChannels = 4; 10 const uint8 kCurrentlySupportedNumberOfChannels = 4;
11 } 11 }
12 12
13 BitmapImage::BitmapImage(int32 width, 13 BitmapImage::BitmapImage(int32 width,
14 int32 height, 14 int32 height,
15 Colorspace colorspace) 15 Colorspace colorspace)
16 : width_(width), 16 : width_(width),
17 height_(height), 17 height_(height),
18 colorspace_(colorspace), 18 colorspace_(colorspace),
19 data_(new uint8[width * height * channels()]) { 19 data_(new uint8[width * height * channels()]) {
20 } 20 }
21 21
22 BitmapImage::~BitmapImage() { 22 BitmapImage::~BitmapImage() {
23 } 23 }
24 24
25 uint8 BitmapImage::channels() const { 25 uint8 BitmapImage::channels() const {
26 return kCurrentlySupportedNumberOfChannels; 26 return kCurrentlySupportedNumberOfChannels;
27 } 27 }
28 28
29 } // namespace printing 29 } // namespace cloud_print
OLDNEW
« no previous file with comments | « chrome/utility/cloud_print/bitmap_image.h ('k') | chrome/utility/cloud_print/pwg_encoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698