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

Unified Diff: cc/resources/tile.h

Issue 1144693002: cc: Move files out of cc/resources/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resources: android Created 5 years, 7 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/resources/texture_mailbox_deleter_unittest.cc ('k') | cc/resources/tile.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/tile.h
diff --git a/cc/resources/tile.h b/cc/resources/tile.h
deleted file mode 100644
index c15c848a194b34d6eebfa10bb7a0608b99a0a036..0000000000000000000000000000000000000000
--- a/cc/resources/tile.h
+++ /dev/null
@@ -1,117 +0,0 @@
-// Copyright 2012 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_TILE_H_
-#define CC_RESOURCES_TILE_H_
-
-#include "base/memory/ref_counted.h"
-#include "cc/resources/tile_draw_info.h"
-#include "ui/gfx/geometry/rect.h"
-#include "ui/gfx/geometry/size.h"
-
-namespace cc {
-
-class PrioritizedTile;
-class TileManager;
-struct TilePriority;
-
-class CC_EXPORT Tile {
- public:
- class CC_EXPORT Deleter {
- public:
- void operator()(Tile* tile) const;
- };
-
- enum TileRasterFlags { USE_PICTURE_ANALYSIS = 1 << 0 };
-
- typedef uint64 Id;
-
- Id id() const {
- return id_;
- }
-
- // TODO(vmpstr): Move this to the iterators.
- bool required_for_activation() const { return required_for_activation_; }
- void set_required_for_activation(bool is_required) {
- required_for_activation_ = is_required;
- }
- bool required_for_draw() const { return required_for_draw_; }
- void set_required_for_draw(bool is_required) {
- required_for_draw_ = is_required;
- }
-
- bool use_picture_analysis() const {
- return !!(flags_ & USE_PICTURE_ANALYSIS);
- }
-
- void AsValueInto(base::trace_event::TracedValue* value) const;
-
- const TileDrawInfo& draw_info() const { return draw_info_; }
- TileDrawInfo& draw_info() { return draw_info_; }
-
- float contents_scale() const { return contents_scale_; }
- gfx::Rect content_rect() const { return content_rect_; }
-
- int layer_id() const { return layer_id_; }
-
- int source_frame_number() const { return source_frame_number_; }
-
- size_t GPUMemoryUsageInBytes() const;
-
- gfx::Size desired_texture_size() const { return desired_texture_size_; }
-
- void set_tiling_index(int i, int j) {
- tiling_i_index_ = i;
- tiling_j_index_ = j;
- }
- int tiling_i_index() const { return tiling_i_index_; }
- int tiling_j_index() const { return tiling_j_index_; }
-
- private:
- friend class TileManager;
- friend class FakeTileManager;
- friend class FakePictureLayerImpl;
-
- // Methods called by by tile manager.
- Tile(TileManager* tile_manager,
- const gfx::Size& desired_texture_size,
- const gfx::Rect& content_rect,
- float contents_scale,
- int layer_id,
- int source_frame_number,
- int flags);
- ~Tile();
-
- bool HasRasterTask() const { return !!raster_task_.get(); }
-
- TileManager* tile_manager_;
- gfx::Size desired_texture_size_;
- gfx::Rect content_rect_;
- float contents_scale_;
-
- TileDrawInfo draw_info_;
-
- int layer_id_;
- int source_frame_number_;
- int flags_;
- int tiling_i_index_;
- int tiling_j_index_;
- bool required_for_activation_ : 1;
- bool required_for_draw_ : 1;
-
- Id id_;
- static Id s_next_id_;
-
- unsigned scheduled_priority_;
-
- scoped_refptr<RasterTask> raster_task_;
-
- DISALLOW_COPY_AND_ASSIGN(Tile);
-};
-
-using ScopedTilePtr = scoped_ptr<Tile, Tile::Deleter>;
-
-} // namespace cc
-
-#endif // CC_RESOURCES_TILE_H_
« no previous file with comments | « cc/resources/texture_mailbox_deleter_unittest.cc ('k') | cc/resources/tile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698