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

Unified Diff: cc/resources/etc1_pixel_ref.h

Issue 138393002: replace etc1_pixel_ref with skia version (SkMallocPixelRef) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/cc.gyp ('k') | cc/resources/etc1_pixel_ref.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/etc1_pixel_ref.h
diff --git a/cc/resources/etc1_pixel_ref.h b/cc/resources/etc1_pixel_ref.h
deleted file mode 100644
index cf92869338f1f91102a59b19be301bf68b2c0bc4..0000000000000000000000000000000000000000
--- a/cc/resources/etc1_pixel_ref.h
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CC_RESOURCES_ETC1_PIXEL_REF_H_
-#define CC_RESOURCES_ETC1_PIXEL_REF_H_
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "base/memory/scoped_ptr.h"
-#include "cc/base/cc_export.h"
-#include "third_party/skia/include/core/SkPixelRef.h"
-
-namespace cc {
-
-class CC_EXPORT ETC1PixelRef : public SkPixelRef {
- public:
- // Takes ownership of pixels.
- ETC1PixelRef(const SkImageInfo& info, size_t rowBytes,
- scoped_ptr<uint8_t[]> pixels);
- virtual ~ETC1PixelRef();
-
- // SK_DECLARE_UNFLATTENABLE_OBJECT
- virtual Factory getFactory() const OVERRIDE;
-
- protected:
- // Implementation of SkPixelRef.
-#ifdef SK_SUPPORT_LEGACY_ONLOCKPIXELS
- virtual void* onLockPixels(SkColorTable** color_table) OVERRIDE;
-#endif
- virtual bool onNewLockPixels(LockRec* rec) OVERRIDE;
- virtual void onUnlockPixels() OVERRIDE;
-
- private:
- size_t rowBytes_;
- scoped_ptr<uint8_t[]> pixels_;
-
- DISALLOW_COPY_AND_ASSIGN(ETC1PixelRef);
-};
-
-} // namespace cc
-
-#endif // CC_RESOURCES_ETC1_PIXEL_REF_H_
« no previous file with comments | « cc/cc.gyp ('k') | cc/resources/etc1_pixel_ref.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698