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

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

Issue 2087673002: Remove CreateGpuMemoryBufferFromClientId and plumbing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 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/output/overlay_unittest.cc ('k') | cc/resources/resource_provider.cc » ('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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 #ifndef CC_RESOURCES_RESOURCE_PROVIDER_H_ 5 #ifndef CC_RESOURCES_RESOURCE_PROVIDER_H_
6 #define CC_RESOURCES_RESOURCE_PROVIDER_H_ 6 #define CC_RESOURCES_RESOURCE_PROVIDER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 GLenum original_filter; 541 GLenum original_filter;
542 GLenum filter; 542 GLenum filter;
543 unsigned image_id; 543 unsigned image_id;
544 unsigned bound_image_id; 544 unsigned bound_image_id;
545 TextureHint hint; 545 TextureHint hint;
546 ResourceType type; 546 ResourceType type;
547 ResourceFormat format; 547 ResourceFormat format;
548 SharedBitmapId shared_bitmap_id; 548 SharedBitmapId shared_bitmap_id;
549 SharedBitmap* shared_bitmap; 549 SharedBitmap* shared_bitmap;
550 std::unique_ptr<gfx::GpuMemoryBuffer> gpu_memory_buffer; 550 std::unique_ptr<gfx::GpuMemoryBuffer> gpu_memory_buffer;
551 gfx::GpuMemoryBufferId gpu_memory_buffer_id;
552 551
553 private: 552 private:
554 SynchronizationState synchronization_state_ = SYNCHRONIZED; 553 SynchronizationState synchronization_state_ = SYNCHRONIZED;
555 bool needs_sync_token_ = false; 554 bool needs_sync_token_ = false;
556 TextureMailbox mailbox_; 555 TextureMailbox mailbox_;
557 556
558 DISALLOW_COPY_AND_ASSIGN(Resource); 557 DISALLOW_COPY_AND_ASSIGN(Resource);
559 }; 558 };
560 using ResourceMap = std::unordered_map<ResourceId, Resource>; 559 using ResourceMap = std::unordered_map<ResourceId, Resource>;
561 560
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 // A process-unique ID used for disambiguating memory dumps from different 659 // A process-unique ID used for disambiguating memory dumps from different
661 // resource providers. 660 // resource providers.
662 int tracing_id_; 661 int tracing_id_;
663 662
664 DISALLOW_COPY_AND_ASSIGN(ResourceProvider); 663 DISALLOW_COPY_AND_ASSIGN(ResourceProvider);
665 }; 664 };
666 665
667 } // namespace cc 666 } // namespace cc
668 667
669 #endif // CC_RESOURCES_RESOURCE_PROVIDER_H_ 668 #endif // CC_RESOURCES_RESOURCE_PROVIDER_H_
OLDNEW
« no previous file with comments | « cc/output/overlay_unittest.cc ('k') | cc/resources/resource_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698