| OLD | NEW |
| 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_PLAYBACK_DISPLAY_LIST_RECORDING_SOURCE_H_ | 5 #ifndef CC_PLAYBACK_DISPLAY_LIST_RECORDING_SOURCE_H_ |
| 6 #define CC_PLAYBACK_DISPLAY_LIST_RECORDING_SOURCE_H_ | 6 #define CC_PLAYBACK_DISPLAY_LIST_RECORDING_SOURCE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 class CC_EXPORT DisplayListRecordingSource { | 29 class CC_EXPORT DisplayListRecordingSource { |
| 30 public: | 30 public: |
| 31 // TODO(schenney) Remove RECORD_WITH_SK_NULL_CANVAS when we no longer | 31 // TODO(schenney) Remove RECORD_WITH_SK_NULL_CANVAS when we no longer |
| 32 // support a non-Slimming Paint path. | 32 // support a non-Slimming Paint path. |
| 33 enum RecordingMode { | 33 enum RecordingMode { |
| 34 RECORD_NORMALLY, | 34 RECORD_NORMALLY, |
| 35 RECORD_WITH_SK_NULL_CANVAS, | 35 RECORD_WITH_SK_NULL_CANVAS, |
| 36 RECORD_WITH_PAINTING_DISABLED, | 36 RECORD_WITH_PAINTING_DISABLED, |
| 37 RECORD_WITH_CACHING_DISABLED, | 37 RECORD_WITH_CACHING_DISABLED, |
| 38 RECORD_WITH_CONSTRUCTION_DISABLED, | 38 RECORD_WITH_CONSTRUCTION_DISABLED, |
| 39 RECORD_WITH_SUBSEQUENCE_CACHING_DISABLED, |
| 39 RECORDING_MODE_COUNT, // Must be the last entry. | 40 RECORDING_MODE_COUNT, // Must be the last entry. |
| 40 }; | 41 }; |
| 41 | 42 |
| 42 DisplayListRecordingSource(); | 43 DisplayListRecordingSource(); |
| 43 virtual ~DisplayListRecordingSource(); | 44 virtual ~DisplayListRecordingSource(); |
| 44 | 45 |
| 45 void ToProtobuf(proto::DisplayListRecordingSource* proto) const; | 46 void ToProtobuf(proto::DisplayListRecordingSource* proto) const; |
| 46 void FromProtobuf(const proto::DisplayListRecordingSource& proto); | 47 void FromProtobuf(const proto::DisplayListRecordingSource& proto); |
| 47 | 48 |
| 48 bool UpdateAndExpandInvalidation(ContentLayerClient* painter, | 49 bool UpdateAndExpandInvalidation(ContentLayerClient* painter, |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 friend class DisplayListRasterSource; | 91 friend class DisplayListRasterSource; |
| 91 | 92 |
| 92 void DetermineIfSolidColor(); | 93 void DetermineIfSolidColor(); |
| 93 | 94 |
| 94 DISALLOW_COPY_AND_ASSIGN(DisplayListRecordingSource); | 95 DISALLOW_COPY_AND_ASSIGN(DisplayListRecordingSource); |
| 95 }; | 96 }; |
| 96 | 97 |
| 97 } // namespace cc | 98 } // namespace cc |
| 98 | 99 |
| 99 #endif // CC_PLAYBACK_DISPLAY_LIST_RECORDING_SOURCE_H_ | 100 #endif // CC_PLAYBACK_DISPLAY_LIST_RECORDING_SOURCE_H_ |
| OLD | NEW |