Home
last modified time | relevance | path

Searched refs:resource_ (Results 1 – 25 of 39) sorted by relevance

12

/external/chromium_org/native_client_sdk/src/libraries/nacl_io/
Dpepper_interface.cc20 : ppapi_(ppapi), resource_(0) { in ScopedResource()
24 : ppapi_(ppapi), resource_(resource) { in ScopedResource()
28 if (resource_) in ~ScopedResource()
29 ppapi_->ReleaseResource(resource_); in ~ScopedResource()
33 if (resource_) in Reset()
34 ppapi_->ReleaseResource(resource_); in Reset()
36 resource_ = resource; in Reset()
40 PP_Resource result = resource_; in Release()
41 resource_ = 0; in Release()
Dpepper_interface.h140 PP_Resource pp_resource() const { return resource_; } in pp_resource()
151 PP_Resource resource_; variable
/external/chromium_org/chrome/browser/safe_browsing/
Dmalware_details.cc78 resource_(resource), in MalwareDetails()
155 if (IsPublicUrl(resource_.url)) in StartCollection()
156 report_->set_malware_url(resource_.url.spec()); in StartCollection()
175 if (!resource_.original_url.is_empty() && in StartCollection()
176 resource_.url != resource_.original_url) { in StartCollection()
178 AddUrl(resource_.original_url, GURL(), std::string(), NULL); in StartCollection()
179 AddUrl(resource_.url, resource_.original_url, std::string(), NULL); in StartCollection()
181 AddUrl(resource_.url, GURL(), std::string(), NULL); in StartCollection()
190 if (!resource_.original_url.is_empty()) in StartCollection()
191 parent_url = resource_.original_url; in StartCollection()
[all …]
/external/chromium_org/chrome/installer/mini_installer/
Dpe_resource.cc8 : resource_(resource), module_(module) { in PEResource()
12 : resource_(NULL), module_(module) { in PEResource()
13 resource_ = ::FindResource(module, name, type); in PEResource()
17 return (NULL != resource_); in IsValid()
21 return ::SizeofResource(module_, resource_); in Size()
27 HGLOBAL data_handle = ::LoadResource(module_, resource_); in WriteToDisk()
/external/chromium_org/cc/resources/
Dmanaged_tile_state.h54 DCHECK(resource_); in get_resource_id()
56 return resource_->id(); in get_resource_id()
66 DCHECK(resource_); in contents_swizzled()
67 return !PlatformColor::SameComponentOrder(resource_->format()); in contents_swizzled()
74 inline bool has_resource() const { return !!resource_; } in has_resource()
80 resource_ = resource.Pass(); in SetResourceForTesting()
100 scoped_ptr<ScopedResource> resource_; variable
Dmanaged_tile_state.cc54 ManagedTileState::TileVersion::~TileVersion() { DCHECK(!resource_); } in ~TileVersion()
59 return !!resource_; in IsReadyToDraw()
69 if (!resource_) in GPUMemoryUsageInBytes()
71 return resource_->bytes(); in GPUMemoryUsageInBytes()
80 has_resource |= (tile_versions[mode].resource_.get() != 0); in AsValueInto()
Dzero_copy_raster_worker_pool.cc25 resource_(resource), in RasterBufferImpl()
30 resource_provider_->UnmapImage(resource_->id()); in ~RasterBufferImpl()
35 resource_provider_->EnableReadLockFences(resource_->id()); in ~RasterBufferImpl()
44 &bitmap_, buffer_, resource_->format(), resource_->size(), stride_); in AcquireSkCanvas()
52 &bitmap_, buffer_, resource_->format()); in ReleaseSkCanvas()
57 const Resource* resource_; member in cc::__anon7f4dd4b10111::RasterBufferImpl
Done_copy_raster_worker_pool.cc29 resource_(resource), in RasterBufferImpl()
43 resource_provider_->CopyResource(raster_resource_->id(), resource_->id()); in ~RasterBufferImpl()
61 &bitmap_, buffer_, resource_->format(), resource_->size(), stride_); in AcquireSkCanvas()
69 &bitmap_, buffer_, resource_->format()); in ReleaseSkCanvas()
75 const Resource* resource_; member in cc::__anon3cc2f7130111::RasterBufferImpl
Dgpu_raster_worker_pool.cc31 resource_(resource), in RasterBufferImpl()
35 resource_provider_->UnlockForWriteToSkSurface(resource_->id()); in ~RasterBufferImpl()
44 resource_->size().width(), resource_->size().height())); in AcquireSkCanvas()
65 const Resource* resource_; member in cc::__anon9e7e23030111::RasterBufferImpl
Dpixel_buffer_raster_worker_pool.cc27 resource_(resource), in RasterBufferImpl()
30 resource_provider_->AcquirePixelBuffer(resource_->id()); in RasterBufferImpl()
31 buffer_ = resource_provider_->MapPixelBuffer(resource_->id(), &stride_); in RasterBufferImpl()
35 resource_provider_->ReleasePixelBuffer(resource_->id()); in ~RasterBufferImpl()
44 &bitmap_, buffer_, resource_->format(), resource_->size(), stride_); in AcquireSkCanvas()
52 &bitmap_, buffer_, resource_->format()); in ReleaseSkCanvas()
57 const Resource* resource_; member in cc::__anonf0c5e8720111::RasterBufferImpl
Drasterizer.h78 const Resource* resource() const { return resource_; } in resource()
86 const Resource* resource_;
Dtile_manager.cc830 if (mts.tile_versions[mode].resource_) { in AssignGpuMemoryToTiles()
844 if (!tile_version.resource_ && !tile_version.raster_task_.get()) { in AssignGpuMemoryToTiles()
870 if (tile_version.resource_) in AssignGpuMemoryToTiles()
874 DCHECK(!tile_version.resource_); in AssignGpuMemoryToTiles()
922 if (mts.tile_versions[mode].resource_) { in FreeResourceForTile()
923 resource_pool_->ReleaseResource(mts.tile_versions[mode].resource_.Pass()); in FreeResourceForTile()
986 DCHECK(!tile_version.resource_); in ScheduleTasks()
1128 tile_version.resource_ = resource.Pass(); in OnRasterTaskCompleted()
/external/chromium_org/ppapi/proxy/
Dlocking_resource_releaser.h23 : resource_(resource) { in LockingResourceReleaser()
27 PpapiGlobals::Get()->GetResourceTracker()->ReleaseResource(resource_); in ~LockingResourceReleaser()
30 PP_Resource get() { return resource_; } in get()
33 PP_Resource resource_;
Dppapi_command_buffer_proxy.cc20 : resource_(resource), in PpapiCommandBufferProxy()
52 ppapi::API_ID_PPB_GRAPHICS_3D, resource_, put_offset); in Flush()
69 resource_, in WaitForTokenInRange()
88 resource_, in WaitForGetOffsetInRange()
102 ppapi::API_ID_PPB_GRAPHICS_3D, resource_, transfer_buffer_id)); in SetGetBuffer()
119 ppapi::API_ID_PPB_GRAPHICS_3D, resource_, size, id, &handle))) { in CreateTransferBuffer()
145 ppapi::API_ID_PPB_GRAPHICS_3D, resource_, id)); in DestroyTransferBuffer()
161 ppapi::API_ID_PPB_GRAPHICS_3D, resource_, &sync_point)); in InsertSyncPoint()
170 ppapi::API_ID_PPB_GRAPHICS_3D, resource_, &sync_point)); in InsertFutureSyncPoint()
178 ppapi::API_ID_PPB_GRAPHICS_3D, resource_, sync_point)); in RetireSyncPoint()
Dplugin_resource_var.cc10 : resource_(resource) {} in PluginResourceVar()
13 return resource_.get() ? resource_->pp_resource() : 0; in GetPPResource()
Dplugin_resource_var.h28 scoped_refptr<ppapi::Resource> resource() const { return resource_; } in resource()
35 scoped_refptr<ppapi::Resource> resource_;
/external/chromium_org/ppapi/thunk/
Denter.h150 Resource* resource_;
189 Resource* resource() { return resource_; }
193 if (resource_)
194 object_ = resource_->GetAs<ResourceT>();
199 SetStateForResourceError(resource, resource_, object_, report_error);
268 if (resource_)
269 functions_ = resource_->GetAs<ApiT>();
276 if (resource_)
277 functions_ = resource_->GetAs<ApiT>();
Denter.cc39 : resource_(NULL), in EnterBase()
45 : resource_(GetResource(resource)), in EnterBase()
51 : resource_(GetSingletonResource(instance, resource_id)), in EnterBase()
58 : resource_(GetResource(resource)), in EnterBase()
60 callback_ = new TrackedCallback(resource_, callback); in EnterBase()
66 : resource_(GetSingletonResource(instance, resource_id)), in EnterBase()
68 if (!resource_) in EnterBase()
70 callback_ = new TrackedCallback(resource_, callback); in EnterBase()
/external/chromium_org/extensions/browser/api/
Dexecute_code_function.cc93 file_url_ = net::FilePathToFileURL(resource_.GetFilePath()); in GetFileURLAndLocalizeCSS()
116 kLoadFileError, resource_.relative_path().AsUTF8Unsafe()); in DidLoadAndLocalizeFile()
201 resource_ = extension()->GetResource(*details_->file); in RunAsync()
203 if (resource_.extension_root().empty() || resource_.relative_path().empty()) { in RunAsync()
211 ->IsComponentExtensionResource(resource_.extension_root(), in RunAsync()
212 resource_.relative_path(), in RunAsync()
218 resource_, base::Bind(&ExecuteCodeFunction::DidLoadFile, this))); in RunAsync()
/external/chromium_org/native_client_sdk/src/tests/nacl_io_test/fake_ppapi/
Dfake_resource_manager.h61 FakeResource* result = resource_; in Pass()
62 resource_ = NULL; in Pass()
71 return static_cast<T*>(resource_); in resource()
74 FakeResource* resource() { return resource_; } in resource()
83 FakeResource* resource_; // Owned. variable
Dfake_resource_manager.cc120 : resource_(resource), in FakeResourceTracker()
126 FakeResourceTracker::~FakeResourceTracker() { delete resource_; } in ~FakeResourceTracker()
/external/chromium_org/extensions/browser/
Dfile_reader.cc16 : resource_(resource), in FileReader()
30 bool success = base::ReadFileToString(resource_.GetFilePath(), &data); in ReadFileOnBackgroundThread()
/external/chromium_org/cc/layers/
Dui_resource_layer.cc26 virtual UIResourceId id() OVERRIDE { return resource_->id(); } in id()
30 resource_ = ScopedUIResource::Create(host, UIResourceBitmap(skbitmap)); in ScopedUIResourceHolder()
33 scoped_ptr<ScopedUIResource> resource_; member in cc::__anonab8d5e2b0111::ScopedUIResourceHolder
/external/chromium_org/third_party/libjingle/source/talk/xmpp/
Dxmppclientsettings.h52 void set_resource(const std::string& resource) { resource_ = resource; } in set_resource()
67 const std::string& resource() const { return resource_; } in resource()
79 std::string resource_; variable
/external/chromium_org/chrome/browser/task_manager/
Dbrowser_process_resource_provider.cc145 return &resource_; in GetResource()
149 task_manager_->AddResource(&resource_); in StartUpdating()

12