OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/browser/ui/window_snapshot/window_snapshot.h" | 5 #include "chrome/browser/ui/window_snapshot/window_snapshot.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "third_party/skia/include/core/SkBitmap.h" | 8 #include "third_party/skia/include/core/SkBitmap.h" |
9 #include "ui/aura/window.h" | 9 #include "ui/aura/window.h" |
10 #include "ui/compositor/compositor.h" | 10 #include "ui/compositor/compositor.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 | 42 |
43 gfx::PNGCodec::Encode(pixels, gfx::PNGCodec::FORMAT_BGRA, | 43 gfx::PNGCodec::Encode(pixels, gfx::PNGCodec::FORMAT_BGRA, |
44 read_pixels_bounds_in_pixel.size(), | 44 read_pixels_bounds_in_pixel.size(), |
45 bitmap.rowBytes(), true, | 45 bitmap.rowBytes(), true, |
46 std::vector<gfx::PNGCodec::Comment>(), | 46 std::vector<gfx::PNGCodec::Comment>(), |
47 png_representation); | 47 png_representation); |
48 return true; | 48 return true; |
49 } | 49 } |
50 | 50 |
51 } // namespace chrome | 51 } // namespace chrome |
OLD | NEW |