ash: Add missing include to test from r236852.
[chromium-blink-merge.git] / cc / resources / etc1_pixel_ref.h
blobc64d3a87a710c1f4e7366190c90e981fb8e7e452
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 #ifndef CC_RESOURCES_ETC1_PIXEL_REF_H_
6 #define CC_RESOURCES_ETC1_PIXEL_REF_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "cc/base/cc_export.h"
12 #include "third_party/skia/include/core/SkPixelRef.h"
14 namespace cc {
16 class CC_EXPORT ETC1PixelRef : public SkPixelRef {
17 public:
18 // Takes ownership of pixels.
19 explicit ETC1PixelRef(scoped_ptr<uint8_t[]> pixels);
20 virtual ~ETC1PixelRef();
22 // SK_DECLARE_UNFLATTENABLE_OBJECT
23 virtual Factory getFactory() const OVERRIDE;
25 protected:
26 // Implementation of SkPixelRef.
27 virtual void* onLockPixels(SkColorTable** color_table) OVERRIDE;
28 virtual void onUnlockPixels() OVERRIDE;
30 private:
31 scoped_ptr<uint8_t[]> pixels_;
33 DISALLOW_COPY_AND_ASSIGN(ETC1PixelRef);
36 } // namespace cc
38 #endif // CC_RESOURCES_ETC1_PIXEL_REF_H_