Enable PPAPI tests for non-SFI mode.
[chromium-blink-merge.git] / chrome / utility / cloud_print / bitmap_image.cc
blob2a2cf9f33d975d213589ee2eac29f888374ea1db
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
3 // found in the LICENSE file.
5 #include "chrome/utility/cloud_print/bitmap_image.h"
7 namespace cloud_print {
9 namespace {
10 const uint8 kCurrentlySupportedNumberOfChannels = 4;
13 BitmapImage::BitmapImage(const gfx::Size& size,
14 Colorspace colorspace)
15 : size_(size),
16 colorspace_(colorspace),
17 data_(new uint8[size.GetArea() * channels()]) {
20 BitmapImage::~BitmapImage() {
23 uint8 BitmapImage::channels() const {
24 return kCurrentlySupportedNumberOfChannels;
27 } // namespace cloud_print