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

Side by Side Diff: cc/resources/raster_source.h

Issue 952893003: Update from https://crrev.com/317530 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix gn for nacl Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « cc/resources/prioritized_resource_manager.cc ('k') | cc/resources/recording_source.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef CC_RESOURCES_RASTER_SOURCE_H_ 5 #ifndef CC_RESOURCES_RASTER_SOURCE_H_
6 #define CC_RESOURCES_RASTER_SOURCE_H_ 6 #define CC_RESOURCES_RASTER_SOURCE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 92
93 // Tracing functionality. 93 // Tracing functionality.
94 virtual void DidBeginTracing() = 0; 94 virtual void DidBeginTracing() = 0;
95 virtual void AsValueInto(base::trace_event::TracedValue* array) const = 0; 95 virtual void AsValueInto(base::trace_event::TracedValue* array) const = 0;
96 virtual skia::RefPtr<SkPicture> GetFlattenedPicture() = 0; 96 virtual skia::RefPtr<SkPicture> GetFlattenedPicture() = 0;
97 virtual size_t GetPictureMemoryUsage() const = 0; 97 virtual size_t GetPictureMemoryUsage() const = 0;
98 98
99 // Return true if LCD anti-aliasing may be used when rastering text. 99 // Return true if LCD anti-aliasing may be used when rastering text.
100 virtual bool CanUseLCDText() const = 0; 100 virtual bool CanUseLCDText() const = 0;
101 101
102 virtual scoped_refptr<RasterSource> CreateCloneWithoutLCDText() const = 0;
103
102 protected: 104 protected:
103 friend class base::RefCountedThreadSafe<RasterSource>; 105 friend class base::RefCountedThreadSafe<RasterSource>;
104 106
105 RasterSource() {} 107 RasterSource() {}
106 virtual ~RasterSource() {} 108 virtual ~RasterSource() {}
107 109
108 private: 110 private:
109 DISALLOW_COPY_AND_ASSIGN(RasterSource); 111 DISALLOW_COPY_AND_ASSIGN(RasterSource);
110 }; 112 };
111 113
112 } // namespace cc 114 } // namespace cc
113 115
114 #endif // CC_RESOURCES_RASTER_SOURCE_H_ 116 #endif // CC_RESOURCES_RASTER_SOURCE_H_
OLDNEW
« no previous file with comments | « cc/resources/prioritized_resource_manager.cc ('k') | cc/resources/recording_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698