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

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

Issue 951673002: Revert "Pull chromium at 2c3ffb2355a27c32f45e508ef861416b820c823b" (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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/tiling_set_eviction_queue.cc ('k') | cc/resources/video_resource_updater.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_UI_RESOURCE_REQUEST_H_ 5 #ifndef CC_RESOURCES_UI_RESOURCE_REQUEST_H_
6 #define CC_RESOURCES_UI_RESOURCE_REQUEST_H_ 6 #define CC_RESOURCES_UI_RESOURCE_REQUEST_H_
7 7
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
11 #include "cc/resources/ui_resource_bitmap.h" 11 #include "cc/resources/ui_resource_bitmap.h"
12 #include "cc/resources/ui_resource_client.h" 12 #include "cc/resources/ui_resource_client.h"
13 13
14 namespace cc { 14 namespace cc {
15 15
16 class CC_EXPORT UIResourceRequest { 16 class CC_EXPORT UIResourceRequest {
17 public: 17 public:
18 enum UIResourceRequestType { 18 enum UIResourceRequestType {
19 UI_RESOURCE_CREATE, 19 UIResourceCreate,
20 UI_RESOURCE_DELETE, 20 UIResourceDelete,
21 UI_RESOURCE_INVALID_REQUEST 21 UIResourceInvalidRequest
22 }; 22 };
23 23
24 UIResourceRequest(UIResourceRequestType type, UIResourceId id); 24 UIResourceRequest(UIResourceRequestType type, UIResourceId id);
25 UIResourceRequest(UIResourceRequestType type, 25 UIResourceRequest(UIResourceRequestType type,
26 UIResourceId id, 26 UIResourceId id,
27 const UIResourceBitmap& bitmap); 27 const UIResourceBitmap& bitmap);
28 UIResourceRequest(const UIResourceRequest& request); 28 UIResourceRequest(const UIResourceRequest& request);
29 29
30 ~UIResourceRequest(); 30 ~UIResourceRequest();
31 31
32 UIResourceRequestType GetType() const { return type_; } 32 UIResourceRequestType GetType() const { return type_; }
33 UIResourceId GetId() const { return id_; } 33 UIResourceId GetId() const { return id_; }
34 UIResourceBitmap GetBitmap() const { 34 UIResourceBitmap GetBitmap() const {
35 DCHECK(bitmap_); 35 DCHECK(bitmap_);
36 return *bitmap_.get(); 36 return *bitmap_.get();
37 } 37 }
38 38
39 UIResourceRequest& operator=(const UIResourceRequest& request); 39 UIResourceRequest& operator=(const UIResourceRequest& request);
40 40
41 private: 41 private:
42 UIResourceRequestType type_; 42 UIResourceRequestType type_;
43 UIResourceId id_; 43 UIResourceId id_;
44 scoped_ptr<UIResourceBitmap> bitmap_; 44 scoped_ptr<UIResourceBitmap> bitmap_;
45 }; 45 };
46 46
47 } // namespace cc 47 } // namespace cc
48 48
49 #endif // CC_RESOURCES_UI_RESOURCE_REQUEST_H_ 49 #endif // CC_RESOURCES_UI_RESOURCE_REQUEST_H_
OLDNEW
« no previous file with comments | « cc/resources/tiling_set_eviction_queue.cc ('k') | cc/resources/video_resource_updater.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698